|Java CUP email@example.com (2001-09-05)|
|Re: Java CUP firstname.lastname@example.org (Vinay Kakade) (2001-09-11)|
|From:||email@example.com (Jan Koutnik)|
|Date:||5 Sep 2001 22:08:35 -0400|
|Posted-Date:||05 Sep 2001 22:08:35 EDT|
I need to create a parser which proceeds the text file and reads one
statement. I want the JavaCUP to do this, but if the grammar contains
only rule for one statement (not a list of statement), the parser
throws an arror if the input file contains more than one statement. I
want the parser to let the rest if input file unchanged. JavaCUP
expects the end of file instead of the first token of a next
statement. Does anybody know how to tell to the parser do this ?
For sure I do not know if is that possible.
[Fix your lexer to stop reading when it sees a statement separator. -John]
Return to the
Search the comp.compilers archives again.