[antlr-interest] [C target] How to create preprocessor?

Jim Idle jimi at temporal-wave.com
Thu Mar 25 11:05:25 PDT 2010


Please see the example C parser in the C subdirectory of the downloadable examples tar on the download page. It implements the include statement simply but shows how to use stacked input streams which are built in to the v3 C target.

Jim


> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Ìèõàèë Þðóøêèí
> Sent: Thursday, March 25, 2010 11:02 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] [C target] How to create preprocessor?
> 
>  Good day,
> 
> I want to parse 'include stmt'. I have found good article for old
> antlr.
> http://www.ibm.com/developerworks/aix/library/au-
> c_plusplus_antlr/index.html.
> 
> But I work with Antlr 3, C target. And I haven't found any interface
> like
> TokenStreamSelector..
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address





More information about the antlr-interest mailing list