Skip to content

How to AT_LEAST_ONE without repeats #2008

Answered by msujew
timneedham asked this question in Q&A
Discussion options

You must be logged in to vote

Are GRANT ... ON TABLE and GRANT ... ON SEQUENCE separate rules? In this case you'll always get an ambiguity error in Chevrotain due to the unknown-length common prefix. You should definitely refactor this into a single rule to prevent the prefix issue.

I should refactor the grammar so there aren't any explicit "forms" and push validation of the "set" in relation to TABLE, SEQUENCE etc. to a later phase too, that's the way to go, isn't it?

Essentially, yes.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@timneedham
Comment options

@msujew
Comment options

Answer selected by timneedham
@timneedham
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2007 on December 03, 2023 18:18.