<private> new Token(_name, _pattern)
Creates a new token for BNF.
Parameters:
Name | Type | Description |
---|---|---|
_name |
string | token name. |
_pattern |
string | for a token. |
- Source:
Properties:
Name | Type | Description |
---|---|---|
name |
string | token name. |
pattern |
string | pattern for token; |
Extends
Methods
-
dump()
-
Displays ordinal number, if any, and description of terminal.
- Inherited From:
- Source:
Returns:
- Type
- string
-
toString()
-
Displays name of a token.
- Source:
Returns:
- Type
- string