Related articles |
---|
Java CUP koutnij@cs.felk.cvut.cz (2001-09-05) |
Re: Java CUP kvinay@ip.eth.net (Vinay Kakade) (2001-09-11) |
From: | koutnij@cs.felk.cvut.cz (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 |
Hello,
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]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.