Ven::Machine
Inherits Ven::Visitor / Reference / Object
Constants
MAX_TRACE = 500
Maximum amount of traces before we die of recursion
Constructors
new
SourceClass methods
from(tree : Quotes, scope : Context)
SourceInstance methods
die(message : String, scope : Context)
Sourcefalse?(model : Model) : Bool
false? is the helper identity contexts and statements
use to check if a thing is falsey. Note that it returns
Crystal's bool, not Ven's.
normalize!(operator, left : Model, right : Model)
Return a tuple {left, right} where left, right are
normalized left, right (i.e., converted according
to the specification, which can be found in normalize?)
normalize?(operator, left : Model, right : Model)
True if left and right need normalization to be
used with operator
str2num(str : String)
Sourceunary(operator, operand : Model)
Sourcevisit!(q : QSymbol, scope)
Sourcevisit!(q : QNumber, scope)
Sourcevisit!(q : QString, scope)
Sourcevisit!(q : QVector, scope)
Sourcevisit!(q : QUnary, scope)
Sourcevisit!(q : QBinary, scope)
Sourcevisit!(q : QIntoBool, scope)
Sourcevisit!(q : QBinarySpread, scope)
Sourcevisit!(q : QLambdaSpread, scope)
Sourcevisit!(q : QInlineWhen, scope)
Sourcevisit!(q : QAssign, scope)
Sourcevisit!(q : QBasicFun, scope)
Sourcevisit!(q : QCall, scope)
SourceMacros
die(message)
Source