package
0.0.0-20250223205350-becdc12922f3
Repository: https://github.com/azer0s/hummus.git
Documentation: pkg.go.dev
# Functions
AtomNode returns an interpreter.Node from a string.
BoolNode returns an interpreter.Node from a bool.
CopyVariableState copy the variable state to another map.
DoVariableCall calls a fn variable.
DumpNode returns the string representation of a node.
EnsureSingleType ensures the variable type of the parameter for a native function is valid.
EnsureType ensures the variable type of the parameter for a native function is valid.
EnsureTypes ensures the variable type of the parameter for a native function is valid.
FloatNode returns an interpreter.Node from a float64.
Hash returns md5 hash taken from any object.
IntNode returns an interpreter.Node from an int.
LoadObject load an object from the object store by its ptr.
NodeList returns an interpreter.Node from a []Node.
NodeMap returns an interpreter.Node from a map[string]Node.
OptionNode return an optional node.
ReplaceEnd replaces a substring in a string starting from the end.
Rev reserves a string.
Run run an AST.
StoreObject store an object and return a pseudo ptr to it.
StringNode returns an interpreter.Node from a string.
# Constants
BUILTIN_BITWISE bitwise functions.
BUILTIN_BOOL boolean algebra functions.
BUILTIN_COMPARE comparison functions.
BUILTIN_COMPARE_ARITHMETIC arithmetic comparison functions.
BUILTIN_MATH the built in math system function.
EXEC_FILE current file.
FREE object store free function.
MAP_ACCESS map access function.
NODETYPE_ATOM atom variable type.
NODETYPE_BOOL bool variable type.
NODETYPE_FLOAT float variable type.
NODETYPE_FN function literal.
NODETYPE_INT int variable type.
NODETYPE_LIST list type.
NODETYPE_MACRO macro type.
NODETYPE_MAP map type.
NODETYPE_STRING string variable type.
NODETYPE_STRUCT struct type.
SELF current process id.
TYPE type function.
USE include function.
# Variables
BasePath base path from which to import stdlib.
LibBasePath path from which to import libraries.
Nothing represents an empty return (int 0).
# Type aliases
NodeType a variable type.