Farkle


Grammar Type

A context-free grammar according to which Farkle can parse text.

Record fields

Record Field Description

_DFAStates

Full Usage: _DFAStates

_Groups

Full Usage: _Groups

_LALRStates

Full Usage: _LALRStates

_Productions

Full Usage: _Productions

_Properties

Full Usage: _Properties

_StartSymbol

Full Usage: _StartSymbol

_Symbols

Full Usage: _Symbols

Instance members

Instance member Description

this.DFAStates

Full Usage: this.DFAStates

Returns: ImmutableArray<DFAState>

The grammar's DFA state table.

Returns: ImmutableArray<DFAState>

this.GetTerminalByName(name)

Full Usage: this.GetTerminalByName(name)

Parameters:
    name : string - The terminal's name.

Returns: Terminal

Finds a Terminal with a specific name.

This method is useful for those that write custom Tokenizer. It executes in linear time. For this reason, it is advised to be called once per terminal name.

name : string

The terminal's name.

Returns: Terminal
ArgumentOutOfRangeException No terminal named name exists.
InvalidOperationException Many terminals named name exist.

this.Groups

Full Usage: this.Groups

Returns: ImmutableArray<Group>

The grammar's `Group`s.

Returns: ImmutableArray<Group>

this.LALRStates

Full Usage: this.LALRStates

Returns: ImmutableArray<LALRState>

The grammar's LALR state table.

Returns: ImmutableArray<LALRState>

this.Productions

Full Usage: this.Productions

Returns: ImmutableArray<Production>

The grammar's `Production`s.

Returns: ImmutableArray<Production>

this.Properties

Full Usage: this.Properties

Returns: GrammarProperties

Additional information about the grammar.

Returns: GrammarProperties

this.StartSymbol

Full Usage: this.StartSymbol

Returns: Nonterminal

The grammar's start `Nonterminal`.

Returns: Nonterminal

this.Symbols

Full Usage: this.Symbols

Returns: Symbols

The grammar's terminals, nonterminals, and noise symbols.

Returns: Symbols