Class: Lit

page.BNF. Lit

Represents a (unique!) literal for BNF.


<private> new Lit(_literal)

Creates a new literal for BNF.

Parameters:
Name Type Description
_literal string

a value for the literal.

Properties:
Name Type Description
literal string

value for the literal.

Source:

Extends

Methods


dump()

Displays ordinal number, if any, and description of terminal.

Inherited From:
Source:
Returns:
Type
string

toString()

Displays string value of a literal.

Source:
Returns:
Type
string