[antlr-interest] parser filter rule?
Manju Anand
manju_a_27 at yahoo.com
Fri Oct 17 18:12:51 PDT 2003
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/
More information about the antlr-interest
mailing list