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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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