[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error messages.


This may have already been brought up (I'm new to the mailing list), but
I think the following error message:

java.lang.RuntimeException: [21,13] identifier undefined.

should be changed to say either: token undefined or helper undefined.  I
found it confusing to submit

    letter = uppercase | lowercase;
    identifier = letter+

and then have the compiler complain that letter was undefined.  I
finally figured out the distinction between helper/identifiers, (that
tokens can't be used in token definitions and that productions can't use
helpers), but I would have made it faster with a more explicit error

Anyways, that's my complaint of the day. :)