Skip to content
Discussion options

You must be logged in to vote

The whole idea behind unordered groups is that they only parse an element once, never twice. Using unordered groups for this doesn't really make sense. You should just use alternatives instead:

fragment INFORMATIONS:
    (age=AGE | name=NAME | address=ADDRESS)*
;

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@Yokozuna59
Comment options

@Yokozuna59
Comment options

@msujew
Comment options

@Yokozuna59
Comment options

@Yokozuna59
Comment options

Answer selected by Yokozuna59
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