ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
I extended DefaultErrorStratergy class to customize the ANTLR error messages
The Java implementation (and the documentation for the BailErrorStrategy) suggest that such a method should exist.
After staring at the source, the only way I've found to change the error strategy is to modify the _errHandler field of the parser directly which is also not working as expected to customize the error messages
I extended DefaultErrorStratergy class to customize the ANTLR error messages
The Java implementation (and the documentation for the BailErrorStrategy) suggest that such a method should exist.![image](https://github.com/antlr/antlr4/assets/160007426/e912c180-76f2-4d83-aa95-d8b6272a9359)
After staring at the source, the only way I've found to change the error strategy is to modify the _errHandler field of the parser directly which is also not working as expected to customize the error messages