Child pages
  • RuleExpression.OneOrManyWithHangingSeparator

Versions Compared

Key

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

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

For example:

Code Block
syntax NotEmptyArguments = "(" (Expression; ","; ?)+ ")";

will parse:

Code Block
(42)
(42,)
(42, 5)
(42, 5,)

but not:

Code Block
()
(,)

See also

RuleExpression
RuleExpression.ZeroOrMany
RuleExpression.OneOrMany
RuleExpression.ZeroOrManyWithSeparator
RuleExpression.ZeroOrManyWithHangingSeparator
RuleExpression.OneOrManyWithSeparator