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

Jim Idle jimi at temporal-wave.com
Wed Jul 9 08:17:21 PDT 2008


On Wed, 2008-07-09 at 09:27 +0100, Artemus Ward wrote:

> 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.
> 


Please read the API docs. From the ANTLR front page, find the
documentation links, find the API doc, take the C API link. Not that
these are for ANTLR 3.1. Also, download the examples tar and look at all
the main.c programs.

Jim

> Art
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080709/cdbe5924/attachment.html 


More information about the antlr-interest mailing list