Java CUP (Jan Koutnik)
5 Sep 2001 22:08:35 -0400

          From comp.compilers

Related articles
Java CUP (2001-09-05)
Re: Java CUP (Vinay Kakade) (2001-09-11)
| List of all articles for this month |

From: (Jan Koutnik)
Newsgroups: comp.compilers
Date: 5 Sep 2001 22:08:35 -0400
Organization: Compilers Central
Keywords: parse, question
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.

Jan Koutnik
[Fix your lexer to stop reading when it sees a statement separator. -John]

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.