YaccConstructor


Tables<'tok>

Namespace: Microsoft.FSharp.Text.Parsing

Tables generated by fsyacc The type of the tables contained in a file produced by the fsyacc.exe parser generator.

Record Fields

Record FieldDescription
actionTableElements
Signature: uint16 []

The sparse action table elements

actionTableRowOffsets
Signature: uint16 []

The sparse action table row offsets

dataOfToken
Signature: 'tok -> obj

A function to compute the data carried by a token

endOfInputTag
Signature: int

The token number indicating the end of input

gotos
Signature: uint16 []

The sparse goto table

immediateActions
Signature: uint16 []

The immediate action table

numTerminals
Signature: int

The total number of terminals

parseError
Signature: ParseErrorContext<'tok> -> unit

This function is used to hold the user specified "parseerror" or "parseerror_rich" functions

productionToNonTerminalTable
Signature: uint16 []

This table is logically part of the Goto table

reductions
Signature: (IParseState -> obj) array

The reduction table

reductionSymbolCounts
Signature: uint16 []

The number of symbols for each reduction

sparseGotoTableRowOffsets
Signature: uint16 []

The sparse goto table row offsets

stateToProdIdxsTableElements
Signature: uint16 []

The sparse table for the productions active for each state

stateToProdIdxsTableRowOffsets
Signature: uint16 []

The sparse table offsets for the productions active for each state

tagOfErrorTerminal
Signature: int

The tag of the error terminal

tagOfToken
Signature: 'tok -> int

A function to compute the tag of a token

Instance members

Instance memberDescription
Interpret(lexer, lexbuf, startState)
Signature: (lexer:(LexBuffer<'char> -> 'tok) * lexbuf:LexBuffer<'char> * startState:int) -> obj

Interpret the parser table taking input from the given lexer, using the given lex buffer, and the given start state. Returns an object indicating the final synthesized value for the parse.

Fork me on GitHub