Class: Precedence

Base~ Precedence

Represents a list of terminal symbols of equal precedence and associativity.


new Precedence(assoc)

Creates a new precedence level; see factory method grammar.precedence().

Parameters:
Name Type Description
assoc string

associativity, '%left', '%right', or '%nonassoc'.

Properties:
Name Type Description
assoc string

associativity, '%left', '%right', or '%nonassoc'.

terminals Array.<module:Base~T>

list of terminal symbols.

Source:

Methods


dump()

Displays associativity and the list of terminals.

Source:
Returns:

.

Type
string

toString()

Displays associativity and the list of terminals.

Source:
Returns:

.

Type
string