Wednesday, September 12, 2001 06:37 PM
I have what I think is a simple parser for arithmetic expressions.
One of the rules is as follows:
| LPAREN aexp RPAREN
The problem is that I can create a string with a missing LPAREN
and the parser will accept it. In any case, it doesn't seem to
throw a TokenStreamException. On the other hand, if I omit
an RPAREN token, it will declare it invalid. What have I