[LLVMdev] LLVM grammar for ANTLR
Samuel Crow
samuraileumas at yahoo.com
Mon Jan 24 08:22:25 PST 2011
Hello Surinder,
The existing hand-written parser is callable from almost anywhere so the only
reason you'd need to have a parser for it would be to extend it. Originally it
was written using Flex and Bison but Chris Lattner rewrote it from scratch to
catch more errors at the parsing stage.
The only feature I've found to be missing from the existing LLVM-AS utility was
an include function with automatic unique detection. This would allow the use
of headers instead of having to manually copy and paste them into the source.
What were you planning on doing with your LLVM parser, if I may ask?
--Sam
----- Original Message ----
> From: Surinder <surifilms at gmail.com>
> To: llvmdev at cs.uiuc.edu
> Sent: Sun, January 23, 2011 10:35:38 PM
> Subject: [LLVMdev] LLVM grammar for ANTLR
>
> Has anyone written a grammar for LLVM for ANTLR. I mean an ANTLR
> grammar that parses LLVM instructions. Is an LLVM grammar available
> for any other parsing tool?
>
> Surinder
More information about the llvm-dev
mailing list