Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct { Orderless bool Flat bool OneIdentity bool Listable bool Constant bool NumericFunction bool Protected bool Locked bool ReadProtected bool HoldFirst bool HoldRest bool HoldAll bool HoldAllComplete bool NHoldFirst bool NHoldRest bool NHoldAll bool SequenceHold bool Temporary bool Stub bool }
type Def ¶
type Def struct { Downvalues []DownValue Attributes Attributes DefaultExpr Ex // A function defined here will override downvalues. LegacyEvalFn EvalFnType }
type DefinitionMap ¶
type DownValue ¶
type DownValue struct { Rule ExpressionInterface Specificity int }
type EvalFnType ¶
type EvalFnType (func(ExpressionInterface, EvalStateInterface) Ex)
type EvalStateInterface ¶
type EvalStateInterface interface { LoggingInterface Eval(expr Ex) Ex GetDefined(name string) (Def, bool) SetDefined(name string, def Def) GetStringFn(headStr string) (ToStringFnType, bool) Init(loadAllDefs bool) IsDef(name string) bool GetDef(name string, lhs Ex) (Ex, bool, ExpressionInterface) GetSymDef(name string) (Ex, bool) MarkSeen(name string) Define(lhs Ex, rhs Ex) ClearAll() Clear(name string) GetDefinedSnapshot() DefinitionMap IsFrozen() bool SetFrozen(frozen bool) IsInterrupted() bool GetStringDef(name string, defaultVal string) string GetListDef(name string) ExpressionInterface Throw(e ExpressionInterface) HasThrown() bool Thrown() ExpressionInterface ProcessTopLevelResult(in Ex, out Ex) Ex GetLogger() LoggingInterface GetTrace() ExpressionInterface SetTrace(newTrace ExpressionInterface) GetDefinedMap() DefinitionMap GetReapSown() ExpressionInterface SetReapSown(ex ExpressionInterface) GetTimeCounter() *timecounter.Group GetStreamManager() StreamManager }
type Ex ¶
type Ex interface { StringForm(params ToStringParams) string IsEqual(b Ex) string DeepCopy() Ex Copy() Ex NeedsEval() bool Hash() uint64 }
Ex is the interface that fundamental types must implement.
type ExpressionInterface ¶
type LoggingInterface ¶
type StreamManager ¶
type StringInterface ¶
type ToStringFnType ¶
type ToStringFnType (func(ExpressionInterface, ToStringParams) (bool, string))
type ToStringParams ¶
type ToStringParams struct { Form string Context StringInterface ContextPath ExpressionInterface PreviousHead string Esi evalStateForStringer }
Click to show internal directories.
Click to hide internal directories.