...
Syntax | Description | |||||
---|---|---|---|---|---|---|
$enclosingRule.attr | ENCLOSING_RULE_SCOPE_ATTR
| |||||
$tokenLabel.prop | token scope attribute. Rule TOKEN_SCOPE_ATTR. | |||||
$rulelabel.attr | Rule RULE_SCOPE_ATTR. | |||||
$label | either a token label or token/rule list label like label+=expr. Rule LABEL_REF. | |||||
$tokenref | in a non-lexer grammar ISOLATED_TOKEN_REF | |||||
$lexerruleref | Yields a Token object created from that rule or fragment rule. Rule ISOLATED_LEXER_RULE_REF from lexer . | |||||
$y | return value, parameter, predefined rule property, or token/rule
| |||||
$x::y | DYNAMIC_SCOPE_ATTR the only way to access the attributes within a dynamic scope
| ff | DYNAMIC_NEGATIVE_INDEXED_SCOPE_ATTR | |||
$x[-1]::y | previous (just under top of stack). Rule DYNAMIC_NEGATIVE_INDEXED_SCOPE_ATTR. | |||||
$x[-i]::y | top of stack - i where the '-' MUST BE PRESENT; | |||||
$x[i]::y | absolute index i (0..size-1). Rule DYNAMIC_NEGATIVE_INDEXED_SCOPE_ATTR. | |||||
$x[0]::y | is the absolute 0 indexed element (bottom of the stack). Rule DYNAMIC_NEGATIVE_INDEXED_SCOPE_ATTR. | |||||
$r | r is a rule's dynamic scope or a global shared scope. |
The following symbols relate to StringTemplate templates.
...