Class: Symbol

Base~ Symbol

Represents a symbol in the grammar alphabets. Symbols are only created through factory methods in the grammar which arrange for uniqueness.


<abstract> new Symbol(name)

Creates a symbol; should only be used by subclass.

Parameters:
Name Type Description
name string

symbol name.

Properties:
Name Type Description
name string

name for a token or non-terminal, representation for a literal. An empty string is used for one reserved symbol in each subclass.

Source: