|variable lookahead in cup? Please help. Martin.Hampl@stud.uni-erlangen.de (2003-08-20)|
|Re: variable lookahead in cup? Please help. Martin.Hampl@stud.uni-erlangen.de (2003-08-23)|
|Re: variable lookahead in cup? Please help. email@example.com (2003-08-23)|
|Date:||20 Aug 2003 01:34:05 -0400|
|Organization:||1&1 Internet AG|
|Keywords:||parse, Java, question|
|Posted-Date:||20 Aug 2003 01:34:05 EDT|
I am trying to write a Paser for a simple language. I'd like it to parse
the expression 'STRING = STRING & STRING' like STRING = (STRING &
STRING)' but 'STRING = STRING & STRING = STRING' like (STRING = STRING)
& (STRING = STRING).
How on earth do I accomplish this with CUP?
With a variable lookahead it would be trivial (or so I think) but I
haven't found anything like this in the documentation.
I'd be grateful for advice,
Return to the
Search the comp.compilers archives again.