[antlr-interest] C target examples

Wincent Colaiuta win at wincent.com
Tue Apr 17 07:41:43 PDT 2007


Does anyone have any examples at all for the C target?

I know that there will eventually be official examples included with  
ANTLR but for the time being I'm wondering if someone can point me to  
a Subversion repository or other place where I can take a look at  
some working (or even non-working examples). So far I've only found  
snippets in the mailing list archives, and some really out-of-date  
stuff using the Google Code search engine.

I'm currently trying to figure out how it all works by trial and  
error, and poring over the generated source and the C target runtime  
source and headers, but the going is very slow and if it's taking me  
a long time to figure out how to do even basic stuff like detecting  
lexing and parsing errors. I've got the Definitive ANTLR Reference,  
but that's obviously Java-centric.

If anyone can direct me to an example, short or long, broken or  
working, I'd be very grateful.

Cheers,
Wincent



More information about the antlr-interest mailing list