[antlr-interest] Re: a quick one!

Terence Parr parrt at cs.usfca.edu
Fri Dec 26 09:43:35 PST 2003


On Thursday, December 25, 2003, at 04:56 PM, Mehdi Taouti wrote:

> Thanks Terence,
>  
> Is there any examples of such a 'C++ subset' parser?

One thing to think about: have the lexer scarf entire method bodies as 
a single token.  Thanks to LL-based lexers, you can have the lexer 
track and scarf nested curlies. :)  You could probably do something as 
simple as ignoring everything but curlies and comments and strings.

Terence
--
Professor Comp. Sci., University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Co-founder, http://www.jguru.com
Co-founder, http://www.knowspam.net enjoy email again!
Co-founder, http://www.peerscope.com pure link sharing




 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/antlr-interest/

To unsubscribe from this group, send an email to:
 antlr-interest-unsubscribe at yahoogroups.com

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list