package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Nov 5, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
BinOpExpr is a type for indicating binary operator.
CallExpr is a type for indicating calling functions.
Expr is a type for indicating expression.
ForExpr is a type for indicating expression.
type IdentExpr struct {
Name string
}
IdentExpr is a type for indicating ident.
type ItemExpr struct {
LHS Expr
Index Expr
}
ItemExpr is a type for indicating reference items in map.
type LitExpr struct {
Value interface{}
}
LitExpr is a type for indicating literals.
MemberExpr is a type for indicating reference member or fields.
MethodCallExpr is a type for indicating calling methods.
VM is a vertual machine.
Compile compile the source.
Eval evaluate the expression.
Get get value named with name.
func (v *VM) Set(n string, vv interface{})
Set set value with name.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.