-
Notifications
You must be signed in to change notification settings - Fork 210
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
Fix docs error for custom error messages #924
Comments
Incorrect LabelsThanks for pointing it out. It has been fixed.
Yes a guide would be good, but I have not gotten around to it for a long while now... Accepting pull requests. 😄
There is no special linking |
I am closing this because the remaining work is in #675 |
Great to see these fixes and docs keep getting better. Would love to see a mention/reference about gates in the main tutorial guide. Also, hope to see an initial version of CST with location info soon, that is not optimized but works. Cheers! |
It helps when issues are opened about those, my POV regarding docs is different
@clement26695 from JHipster has started working on it here: You should be able to override 2-4 methods in your parser instance to achieve an un-optimized solution without waiting for an official feature. |
See custom_errors page in features list.
The labels for both API interfaces are mistakingly
IParserErrorMessageProvider
, should be:IParserErrorMessageProvider
ILexerErrorMessageProvider
Would also be nice with a short guide/overview rather than having to parse and understand the intricacies of the code...
Extend parse and pass in the custom error provider as
errorMessageProvider
option in the call tosuper
.Somehow the
mis_match
rule will use thebuildMismatchTokenMessage
to build the message... ???? Some kind of naming convention? Would be nice with an explicit map to customize this I think.Looks very "magical" currently and not well documented.
The text was updated successfully, but these errors were encountered: