Child pages
  • RuleExpression.ZeroOrManyWithHangingSeparator
Skip to end of metadata
Go to start of metadata

RuleExpression.ZeroOrManyWithHangingSeparator is the same as ZeroOrManyWithSeparator, except that it allows for a hanging separator – a separator located at the end of the list (not followed by an element).

For example:

This example parses code such as:

or:

that is the code either with a comma at the end of the list or without it.

Using the ZeroOrManyWithSeparator rule would prohibit a comma at the end of the list.

See also

RuleExpression
RuleExpression.ZeroOrMany
RuleExpression.OneOrMany
RuleExpression.ZeroOrManyWithSeparator
RuleExpression.OneOrManyWithSeparator
RuleExpression.OneOrManyWithHangingSeparator

  • No labels