Re: Java CUP

Vinay Kakade <>
11 Sep 2001 00:17:18 -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: Vinay Kakade <>
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


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]

Post a followup to this message

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