[antlr-interest] include file

Jim Idle jimi at temporal-wave.com
Fri Sep 12 11:46:02 PDT 2008


On Fri, 2008-09-12 at 14:34 -0400, Yixun Liu wrote:

> I am new to antlr. Could you give me an simple example or describe it in 
> more details?

First, read:

http://www.antlr.org/wiki/display/ANTLR3/Five+minute+introduction+to
+ANTLR+3

Then download the C target examples from the ANTLR download page. Then
read:

http://www.antlr.org/api/C/index.html

Jim



> Thanks!
> Jim Idle wrote:
> > On Fri, 2008-09-12 at 14:16 -0400, Yixun Liu wrote:
> >> Hi,
> >> In my source code I need to include a header file which cannot pass antlr.
> >> #include <filename.h>
> >> I want to make antlr be silent to this include file. How to do it?
> >>     
> >
> >
> > Follow the example projects and don't try to include that file in the 
> > ANTLR generated code. You have an include file for your project files 
> > that includes the generated  YourProjectParser.h and then your project 
> > specific includes. Other than that, consult the C API documentation 
> > about the @sections
> >
> > Jim
> >
> >
> >> Thanks.
> >>
> >> Yixun
> >>
> >> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> >> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> >>
> >>     
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080912/b03c94ef/attachment.html 


More information about the antlr-interest mailing list