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: | Vinay Kakade <kvinay@ip.eth.net> |
Newsgroups: | comp.compilers |
Date: | 11 Sep 2001 00:17:18 -0400 |
Organization: | Compilers Central |
References: | 01-09-014 |
Keywords: | Java, parse |
Posted-Date: | 11 Sep 2001 00:17:18 EDT |
Hello,
IMHO, to solve the problem eu kan:
1. Make your lexer stop reading when it sees the first statement
seperator, or
2. Modify your grammar to process only the first statement and ignore
rest of the input file
With Thanks and Regards,
-Vinay Kakade.
Jan Koutnik wrote:
> I need to create a parser which proceeds the text file and reads one
> statement. I want the JavaCUP to do this, ...
> [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.