Class: Tuple

page. Tuple

Represents an element of a tokenized input stream.


new Tuple(_lineno, _t, _value)

Creates a new element of a tokenized input stream.

Parameters:
Name Type Description
_lineno number

input position.

_t page.BNF.T

terminal.

_value string

terminal's representation in the input.

Properties:
Name Type Description
lineno number

input position.

t page.BNF.T

terminal.

value string

terminal's representation in the input.

Source:
See:
  • page.BNF.tokenizer

Methods


toString()

Displays position, terminal, and associated value.

Source:
Returns:

.

Type
string