Skip to content

Handling distinct keys with CstParser and gates #1791

Answered by NaridaL
tidmush asked this question in Q&A
Discussion options

You must be logged in to vote

If you are parsing a CST, it is simpler to check this in a second pass. This allows you to output much more helpful errors.

Use the https://chevrotain.io/docs/tutorial/step3a_adding_actions_visitor.html#the-cst-visitor to add a check to the relevant node.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tidmush
Comment options

@bd82
Comment options

Answer selected by bd82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants