Averest


Parser Module

Types

Type Description

nonTerminalId

token

tokenId

Functions and values

Function or value Description

Expr arg1 arg2

Full Usage: Expr arg1 arg2

Parameters:
Returns: ExprC

arg0 : LexBuffer<'cty> -> token
arg1 : LexBuffer<'cty>
Returns: ExprC

MiniCFile arg1 arg2

Full Usage: MiniCFile arg1 arg2

Parameters:
Returns: MiniCProgram

arg0 : LexBuffer<'cty> -> token
arg1 : LexBuffer<'cty>
Returns: MiniCProgram

SharedVarDecls arg1 arg2

Full Usage: SharedVarDecls arg1 arg2

Parameters:
Returns: (string * TypeC) list

arg0 : LexBuffer<'cty> -> token
arg1 : LexBuffer<'cty>
Returns: (string * TypeC) list

prodIdxToNonTerminal arg1

Full Usage: prodIdxToNonTerminal arg1

Parameters:
    arg0 : int

Returns: nonTerminalId

This function maps production indexes returned in syntax errors to strings representing the non terminal that would be produced by that production

arg0 : int
Returns: nonTerminalId

tagOfToken arg1

Full Usage: tagOfToken arg1

Parameters:
Returns: int

This function maps tokens to integer indexes

arg0 : token
Returns: int

tokenTagToTokenId arg1

Full Usage: tokenTagToTokenId arg1

Parameters:
    arg0 : int

Returns: tokenId

This function maps integer indexes to symbolic token ids

arg0 : int
Returns: tokenId

token_to_string arg1

Full Usage: token_to_string arg1

Parameters:
Returns: string

This function gets the name of a token as a string

arg0 : token
Returns: string