[antlr-interest] Using C lexers/parsers built by ANTLR

Artemus Ward coddbotherer at googlemail.com
Wed Jul 9 01:27:49 PDT 2008


So far I've been generating Java from my grammar because it was easy
to get started, but I really want to use C as my target language.  No
problem getting ANTLR to generate C code, but can anyone give me a
quick steer as to how to invoke my lexer and parser from a C main?
I'm going to start reading the generated code, but it is sort of a
distraction, so if anyone can get me started I'd be hugely grateful.

Art


More information about the antlr-interest mailing list