google / google/polymorphicDSL
Listeners should have visitErrorNode throw an exception by default
Open
enhancement
- Dominant language
- Java
- Stars
- 17
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
It is possible to get a false positive if errorNodes are encountered. The default implementation is to do nothing. The user can implement an exception to be thrown manually, but I'm concerned that it will be easy to forget and lead to difficult to diagnose bugs.
I'm going to see if this can be built into the generated code ANTLR produces with its "tool" code.
Contributor guide
Assessment
This issue has not been assessed yet.