Child pages
  • RuleExpression.OneOrManyWithSeparator

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Code Block
| OneOrManyWithSeparator = "(" RuleExpression ";" Separator ")" "+"

RuleExpression.OneOrManyWithSeparator is the same as ZeroOrManyWithSeparator, except that it doesn't allow for empty lists.

For example:

Code Block
syntax VariableDeclarators = (VariableDeclarator; ",")+;

will parse:

Code Block
x
x = 1, y

but not:

Code Block
x,

or an empty list.

See also

RuleExpression
RuleExpression.ZeroOrMany
RuleExpression.OneOrMany
RuleExpression.ZeroOrManyWithSeparator
RuleExpression.ZeroOrManyWithHangingSeparator
RuleExpression.OneOrManyWithHangingSeparator