Barb


CompilerParts

Namespace: Barb

Internal compiler parts used by the REPL

Functions and values

Function or valueDescription
parse settings predicate
Signature: settings:BarbSettings -> predicate:string -> BarbData

Parses the input string

reduce data
Signature: data:BarbData -> BarbData

Reduces/optimizes the expression tree

reduceFinal context parsed
Signature: context:Bindings -> parsed:BarbData -> ExprRep list * Bindings

Performs the 'final reduction'. This is the execution phase.

setInput inputType data
Signature: inputType:Type -> data:BarbData -> BarbData

Sets the input type of the Barb function

setOutput outputType data
Signature: outputType:Type -> data:BarbData -> BarbData

Sets the output type of the Barb function

toFunction data
Signature: data:BarbData -> obj -> obj

Converts the Barb representation to an actual function callable in .NET

Fork me on GitHub