Header menu logo FsLexYacc

AST Module

Types

Type Description

Alphabet

Clause

Code

DfaNode

Ident

Input

Macro

MultiMap<'a, 'b>

NfaNode

NfaNodeIdSet

NfaNodeIdSetBuilder

NfaNodeMap

NodeId

NodeSetSet

ParseContext

Parser<'t>

Regexp

Rule

RuleArgument

Capture the name of the argument inside a rule. When the rule is typed, the type name is expected to have a single identifier. This is a known limitation and the caller can get around this by using a type alias.

Spec

Functions and values

Function or value Description

AddToMultiMap trDict a b

Full Usage: AddToMultiMap trDict a b

Parameters:
    trDict : MultiMap<'a, 'b>
    a : 'a
    b : 'b

trDict : MultiMap<'a, 'b>
a : 'a
b : 'b

Compile ctx spec

Full Usage: Compile ctx spec

Parameters:
Returns: (DfaNode * Code seq) list * DfaNode list
ctx : ParseContext
spec : Spec
Returns: (DfaNode * Code seq) list * DfaNode list

DecodeChar x ctx

Full Usage: DecodeChar x ctx

Parameters:
Returns: char
x : Alphabet
ctx : ParseContext
Returns: char

EncodeChar c ctx

Full Usage: EncodeChar c ctx

Parameters:
Returns: uint32
c : char
ctx : ParseContext
Returns: uint32

EncodeUnicodeCategory s ctx

Full Usage: EncodeUnicodeCategory s ctx

Parameters:
Returns: uint32
s : string
ctx : ParseContext
Returns: uint32

EncodeUnicodeCategoryIndex idx

Full Usage: EncodeUnicodeCategoryIndex idx

Parameters:
    idx : int

Returns: uint32
idx : int
Returns: uint32

Eof

Full Usage: Eof

Returns: Alphabet
Returns: Alphabet

Epsilon

Full Usage: Epsilon

Returns: Alphabet
Returns: Alphabet

GetAlphabet ctx

Full Usage: GetAlphabet ctx

Parameters:
Returns: Set<uint32>
ctx : ParseContext
Returns: Set<uint32>

GetSingleCharAlphabet ctx

Full Usage: GetSingleCharAlphabet ctx

Parameters:
Returns: Set<char>
ctx : ParseContext
Returns: Set<char>

GetSpecificUnicodeChars ()

Full Usage: GetSpecificUnicodeChars ()

Parameters:
    () : unit

Returns: char seq
() : unit
Returns: char seq

IsUnicodeCategory x

Full Usage: IsUnicodeCategory x

Parameters:
Returns: bool
x : Alphabet
Returns: bool

LexerStateToNfa ctx macros clauses

Full Usage: LexerStateToNfa ctx macros clauses

Parameters:
Returns: NfaNode * Code seq * NfaNodeMap
ctx : ParseContext
macros : Map<string, Regexp>
clauses : Clause list
Returns: NfaNode * Code seq * NfaNodeMap

LookupMultiMap trDict a

Full Usage: LookupMultiMap trDict a

Parameters:
Returns: 'b list
trDict : MultiMap<'a, 'b>
a : 'a
Returns: 'b list

NfaToDfa nfaNodeMap nfaStartNode

Full Usage: NfaToDfa nfaNodeMap nfaStartNode

Parameters:
Returns: DfaNode * DfaNode list
nfaNodeMap : NfaNodeMap
nfaStartNode : NfaNode
Returns: DfaNode * DfaNode list

NumSpecificUnicodeChars ()

Full Usage: NumSpecificUnicodeChars ()

Parameters:
    () : unit

Returns: int
() : unit
Returns: int

NumUnicodeCategories

Full Usage: NumUnicodeCategories

Returns: int
Returns: int

TryDecodeUnicodeCategory x

Full Usage: TryDecodeUnicodeCategory x

Parameters:
Returns: UnicodeCategory option
x : Alphabet
Returns: UnicodeCategory option

TryEncodeChar c ctx

Full Usage: TryEncodeChar c ctx

Parameters:
Returns: uint32 option
c : char
ctx : ParseContext
Returns: uint32 option

UnicodeCategoryIndex x

Full Usage: UnicodeCategoryIndex x

Parameters:
Returns: Alphabet
x : Alphabet
Returns: Alphabet

encodedUnicodeCategoryBase

Full Usage: encodedUnicodeCategoryBase

Returns: uint32
Returns: uint32

newDfaNodeId

Full Usage: newDfaNodeId

Returns: unit -> int
Returns: unit -> int

numLowUnicodeChars

Full Usage: numLowUnicodeChars

Returns: int
Returns: int

specificUnicodeChars

Full Usage: specificUnicodeChars

Returns: Dictionary<char, uint32>
Returns: Dictionary<char, uint32>

specificUnicodeCharsDecode

Full Usage: specificUnicodeCharsDecode

Returns: Dictionary<uint32, char>
Returns: Dictionary<uint32, char>

unicodeCategories

Full Usage: unicodeCategories

Returns: IDictionary<string, UnicodeCategory>
Returns: IDictionary<string, UnicodeCategory>

Active patterns

Active pattern Description

(|UnicodeCategoryAP|_|) x

Full Usage: (|UnicodeCategoryAP|_|) x

Parameters:
Returns: UnicodeCategory option
x : Alphabet
Returns: UnicodeCategory option

Type something to start searching.