A nonterminal that does not have an associated return type.
This type is easier to work with if you want to just
define a grammar as you would do in GOLD Parser. Because it only implements
the untyped DesigntimeFarkle interface,
it can only be Append
ed but not Extend
ed in
production builders. Overall, it is a normal designtime Farkle.
User code must not inherit from this class, or an exception might be thrown.
Instance member | Description |
Full Usage:
this.Name
Returns: string
|
The nonterminal's name.
|
Full Usage:
this.SetProductions
Parameters:
ProductionBuilder
prods : ProductionBuilder[]
Modifiers: abstract |
This method must only be called once, and before
building a designtime Farkle containing this nonterminal.
Subsequent calls, and these after building are ignored.
It accepts un
|
Static member | Description |
Full Usage:
Nonterminal.Create(name, firstProd, prods)
Parameters:
string
firstProd : ProductionBuilder
prods : ProductionBuilder[]
Returns: DesigntimeFarkle
|
Creates an untyped DesigntimeFarkle from a nonterminal with the given name and productions, declared as production builders.
|
|
This function is useful for the creation of recursive productions.
|