Farkle


Nonterminal Type

A helper static class to create nonterminals.

Static members

Static member Description

Nonterminal.Create(name, firstProduction, productions)

Full Usage: Nonterminal.Create(name, firstProduction, productions)

Parameters:
Returns: DesigntimeFarkle<'T>

Creates a DesigntimeFarkle{T} that represents a nonterminal with a given name and productions.

name : string
firstProduction : Production<'T>
productions : Production<'T>[]
Returns: DesigntimeFarkle<'T>

Nonterminal.Create(name)

Full Usage: Nonterminal.Create(name)

Parameters:
    name : string

Returns: Nonterminal<'T>

Creates a Nonterminal{T} whose productions must be later set with SetProductions. Useful for recursive productions.

If the productions are not set, an error will be raised on building.

name : string
Returns: Nonterminal<'T>

Nonterminal.CreateUntyped(name, firstProd, prods)

Full Usage: Nonterminal.CreateUntyped(name, firstProd, prods)

Parameters:
Returns: DesigntimeFarkle
name : string
firstProd : ProductionBuilder
prods : ProductionBuilder[]
Returns: DesigntimeFarkle

Nonterminal.CreateUntyped(name)

Full Usage: Nonterminal.CreateUntyped(name)

Parameters:
    name : string

Returns: Nonterminal
name : string
Returns: Nonterminal