<private> new NT(_name, _index)
Creates a new non-terminal representation for BNF.
Parameters:
Name | Type | Description |
---|---|---|
_name |
string | non-terminal's name. |
_index |
number | non-terminal's index in page.BNF |
- Source:
Properties:
Name | Type | Description |
---|---|---|
name |
string | non-terminal's name. |
index |
number | non-terminal's index in page.BNF |
ord |
number | non-terminal's global index; transient, set in page.BNF#init. |
rules |
Array.<page.BNF.Rule> | defining |
empty |
boolean | true if no input can be accepted. |
reached |
boolean | true if this can be reached from rule zero, transient. |
finite |
boolean | true if there is a non-recursive expansion, transient. |
first |
Map | terminals at front, maps ord to page.BNF.T. |
follow |
Map | terminals following, maps ord to page.BNF.T. |