Child pages
  • RuleExpression.ZeroOrMany

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Code Block
| ZeroOrMany = RuleExpression "*" precedence 30

RuleExpression.ZeroOrMany is a loop that parses zero or more elements. The field name formed for the loop is pluralized (see AST fields). The field’s type is list [T], where [T] is a type that matches the RuleExpression subrule type.

For example:

Code Block
token StringLiteral = '\"' StringPart* '\"';

A field will be created for the "StringPart*" loop:

Code Block
StringParts : list[StringPart];

See also