| 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:

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

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

StringParts : list[StringPart];

See also

RuleExpression