| OneOrManyWithSeparator = "(" RuleExpression ";" Separator ")" "+" |
RuleExpression.OneOrManyWithSeparator
is the same as ZeroOrManyWithSeparator
, except that it doesn't allow for empty lists.
For example:
syntax VariableDeclarators = (VariableDeclarator; ",")+; |
will parse:
x x = 1, y |
but not:
x, |
or an empty list.
RuleExpression
RuleExpression.ZeroOrMany
RuleExpression.OneOrMany
RuleExpression.ZeroOrManyWithSeparator
RuleExpression.ZeroOrManyWithHangingSeparator
RuleExpression.OneOrManyWithHangingSeparator