Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setErrorHandler method is missing from Parser class in TypeScript target #4633

Open
SuraiyaBegumK opened this issue May 29, 2024 · 0 comments

Comments

@SuraiyaBegumK
Copy link

SuraiyaBegumK commented May 29, 2024

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

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

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant