Yaaf.FSharp.Scripting


Extensions

Defined in Yaaf.FSharp.Scripting.dll.

Type extensions

Type extensionDescription
ChangeCurrentDirectory(dir)
Signature: dir:string -> IDisposable

Change the current directory (so that relative paths within scripts work properly). Returns a handle to change the current directory back to it's initial state (Because this will change the current directory of the currently running code as well!).

DynamicAssemblyBuilder
Signature: AssemblyBuilder
DynamicAssemblyBuilder
Signature: AssemblyBuilder
Modifiers: abstract
EvalExpression(text)
Signature: text:string -> 'a
Type parameters: 'a

Evaluate the given expression and return its result.

EvalExpressionWithOutput(text)
Signature: text:string -> InteractionResult * 'a
Type parameters: 'a
EvalInteraction(s)
Signature: s:string -> unit
EvalScript(s)
Signature: s:string -> unit
EvalScriptAsInteraction(s)
Signature: s:string -> unit

See https://github.com/Microsoft/visualfsharp/issues/1392

EvalScriptAsInteractionWithOutput(s)
Signature: s:string -> unit

See https://github.com/Microsoft/visualfsharp/issues/1392

Handle(f text)
Signature: (f:(string -> '?19624)) -> text:string -> HandledResult<'?19624>
Type parameters: '?19624

Handle the given evaluation function

Let(varName obj)
Signature: varName:string -> obj:'a -> unit
Type parameters: 'a

Assigns the given object to the given name (ie "let varName = obj")

Load(file)
Signature: file:string -> unit
Open(ns)
Signature: ns:string -> unit
Reference(file)
Signature: file:string -> unit
TryEvalExpression(s)
Signature: s:string -> (obj * Type) option
WithCurrentDirectory(dir f)
Signature: dir:string -> (f:(unit -> '?19622)) -> '?19622
Type parameters: '?19622

Same as ChangeCurrentDirectory but takes a function for the scope.

Fork me on GitHub