YaccConstructor


AST

Namespace: Yard.Generators.Common
Parent Module: AstNode

Non-terminal expansion: production, family of children All nodes are stored in array, so there is a correspondence between integer and node. Family of children - For one nonTerminal there can be a lot of derivation trees.

Record Fields

Record FieldDescription
first
Signature: Family
Modifiers: mutable
other
Signature: Family []
Modifiers: mutable
pos
Signature: int
Modifiers: mutable

Constructors

ConstructorDescription
new(fs)
Signature: (fs:Family array) -> AST

CompiledName: .ctor

new(f, o, p)
Signature: (f:Family * o:Family [] * p:int) -> AST

CompiledName: .ctor

new(f, o)
Signature: (f:Family * o:Family []) -> AST

CompiledName: .ctor

Instance members

Instance memberDescription
doForAllFamilies(f)
Signature: (f:(Family -> unit)) -> unit
filterFamilies(f)
Signature: (f:(Family -> bool)) -> ResizeArray<Family>
findFamily(f)
Signature: (f:(Family -> bool)) -> Family option
map(f)
Signature: (f:(Family -> 'a)) -> 'a []
Type parameters: 'a
Fork me on GitHub