Skip to main content

Lisp.BuiltInFunc

Built-in function

Assembly: ServiceStack.Common.dll
View Source
Declaration
public sealed class BuiltInFunc : Lisp.LispFunc

Properties

Name

Name of this function

View Source
Declaration
public string Name { get; }

Body

C# function as the body of this function

View Source
Declaration
public Lisp.BuiltInFuncBody Body { get; }

Inherited Properties

Carity

Number of arguments, made negative if the function has &rest

View Source
Declaration
public int Carity { get; }

Methods

ToString()

Return a string representation in Lisp.

View Source
Declaration
public override string ToString()
Returns

System.String

EvalWith(Lisp.Interpreter, Lisp.Cell, Lisp.Cell)

Invoke the built-in function with a list of actual arguments.

View Source
Declaration
public object EvalWith(Lisp.Interpreter interp, Lisp.Cell arg, Lisp.Cell interpEnv)
Returns

System.Object

Parameters
TypeName
ServiceStack.Script.Lisp.Interpreterinterp
ServiceStack.Script.Lisp.Cellarg
ServiceStack.Script.Lisp.CellinterpEnv

Inherited Methods

EvalFrame(Object[], Lisp.Interpreter, Lisp.Cell)

Evaluate each expression in a frame.

View Source
Declaration
public void EvalFrame(object[] frame, Lisp.Interpreter interp, Lisp.Cell env)
Parameters
TypeName
System.Object[]frame
ServiceStack.Script.Lisp.Interpreterinterp
ServiceStack.Script.Lisp.Cellenv

MakeFrame(Lisp.Cell)

Make a frame for local variables from a list of actual arguments.

View Source
Declaration
public object[] MakeFrame(Lisp.Cell arg)
Returns

System.Object[]

Parameters
TypeName
ServiceStack.Script.Lisp.Cellarg