Workaround for optional elements in unordered groups #1903
|
Hi all I'm currently working on a proof of concept for a new language server for ContextMapper. Is there a way to work around the missing support for optional elements in unordered groups? Thanks in advance for your help! |
Replies: 1 comment 1 reply
|
Hey @lstreckeisen, AFAIK all elements in unordered groups are optional right now. Note that we recommend to use a simple |
Hey @lstreckeisen,
AFAIK all elements in unordered groups are optional right now. Note that we recommend to use a simple
(A | B | C)*pattern with validations instead ofA & B & C, as the latter usually results in unreadable parser error messages (whereas the former allows you to specify what is wrong).