Skip to content

Optional elements in Unordered groups are currently not supported #649

Answered by msujew
luan-xiaokun asked this question in Q&A
Discussion options

You must be logged in to vote

@luan-xiaokun Yep, as mentioned in your other comment, this is due to a limitation of our underlying parser library.

However, I'm wondering why you would need such a construct in the first place. In theory (A? & B) (which parses (A or B or nothing) in any order) is grammatically the same as (A & B)? (which parses (A or B in any order) or nothing, but probably works correctly in Chevrotain).

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@luan-xiaokun
Comment options

@msujew
Comment options

@luan-xiaokun
Comment options

Answer selected by luan-xiaokun
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