Is there a way to create warnings? #1977
matthew-dean
started this conversation in
Ideas
Replies: 1 comment
-
I would personally try to keep the parser for pure grammar concerns. Anyhow, there does not seem to be much plumbing in the error messages creation, so I am not sure code re-use is a major concern here. If you think it will be convenient / easier to collect the warnings during the parsing, that is fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This morning, I was exploring the Chevrotain code to see if there was any way I could create warnings instead of errors.
In other words, having code like:
There are cases where the non-existence of a rule or value is problematic, but it's not necessarily a parsing problem. I'd love to be able to use all the plumbing of creating error messages, but without a thrown error.
OR would the advice be that this shouldn't be part of the parser, and is something more valid for a CSTVisitor?
Beta Was this translation helpful? Give feedback.
All reactions