[antlr-interest] parser filter rule?

Terence Parr parrt at cs.usfca.edu
Sat Oct 18 11:57:55 PDT 2003


Hi...I don't currently have a filter option for parsers...sorry.
Ter
On Friday, October 17, 2003, at 06:12 PM, Manju Anand wrote:

> Hi,
>
> I am trying to implement a simple java parser. I know there is a
> filter option in the lexer to only match what is there and ignore
> other text.
>
> Is there such an option in the parser? I only want to match packages,
> classes, methods, etc and have written rules for it. It does work,
> but the parser throws a lot of error messages and also the parser
> stops execution at the first error message.
>
> For eg,
>
> class a{
>    int abc;
> }
>
> class def{
>    String abc;
> }
>
> It stops at 'int' in the first class and does not parse the 'class
> def'.
>
> I know I can use the java.g file and insert print statements only
> where I want - but I would like to know if writing only the rules I
> need and ignoring all other text is possible.
>
> thanks,
> Manju
>
>
>
>
> Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/
>
>
>
--
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




 

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




More information about the antlr-interest mailing list