Class: NT

Base~ NT

Represents a non-terminal symbol.


<abstract> new NT(name)

Creates a non-terminal symbol; should only be used by factory method.

Parameters:
Name Type Description
name string

non-terminal's name.

Properties:
Name Type Description
name string

name for the non-terminal. Empty string is reserved for $accept, can be left-hand side of a start rule.

Source:

Extends

Methods


dump()

Displays name of a non-terminal or $accept.

Source:
Returns:
Type
string

toString()

Displays name of a non-terminal or $accept.

Source:
Returns:
Type
string