<private> new Rule(_nt, _symbols [, _prec])
Creates a new BNFP rule.
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
_nt |
page.BNF.NT | left-hand side, non-terminal. |
|
_symbols |
Array.<Node> | right-hand side. |
|
_prec |
Object | boolean |
<optional> |
precedence or |
- Source:
Properties:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
prec |
Object | boolean | precedence or Properties
|
Extends
Methods
-
dump()
-
Displays index, rule,
empty, and content offirst.- Inherited From:
- Source:
Returns:
- Type
- string
-
toString( [_mark])
-
Displays a rule in BNF notation.
Parameters:
Name Type Argument Description _marknumber <optional>
precedes a symbol on the right-hand side if it is in range.
- Inherited From:
- Source:
Returns:
- Type
- string
-
toString( [_mark])
-
Displays a rule in BNF notation.
Parameters:
Name Type Argument Description _marknumber <optional>
precedes a symbol on the right-hand side if it is in range.
- Source:
Returns:
- Type
- string
page