Class: T

Base~ T

Represents a terminal, i.e., a literal or a token.


<abstract> new T(name)

Creates a terminal; should only be used by subclass.

Parameters:
Name Type Description
name string

name for a token, representation for a literal.

Properties:
Name Type Description
prec Object

precedence.

Properties
Name Type Argument Description
assoc string <optional>

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

level number <optional>

precedence level, from 0, if any.

used boolean

true if used in a grammar.

name string

name for a token, representation for a literal.

Source:

Extends

Methods


dump()

Displays description and precedence, if any.

Source:
Returns:
Type
string