Invalid tokens generate an error without associated source information
#4
Closed
opened 7 years ago by MichaelBurge
·
1 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Issue
When a token not mentioned in a brag grammar is given to the parser, the error does not include source information.
This can be reproduced by running
racket b.rkt
after creating two filesa.rkt
andb.rkt
with the contents below.Source code
a.rkt
b.rkt
Error message
Requested fix
I propose rewording the error message as follows:
(I didn’t rewrite the error message because it has side effects, but the source location will now appear in the message)