package
0.0.0-20210525052339-fb7d6bd9331e
Repository: https://github.com/lab47/exprcore.git
Documentation: pkg.go.dev

# Functions

DecodeProgram decodes a compiled exprcore program from data.
Expr compiles an expression to a program whose toplevel function evaluates it.
File compiles the statements of a file into a program.
PrintOp prints an instruction.

# Constants

"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
list elem APPEND -.
- AT<name> value.
x ATTR<name> y y = x.name.
fn positional named CALL<n> result.
fn positional named **kwargs CALL_KW<n> result.
fn positional named *args CALL_VAR<n> result.
fn positional named *args **kwargs CALL_VAR_KW<n> result.
cell CELL value.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
cond CJMP<addr> -.
- CONSTANT<constant> value.
x DUP x x.
x y DUP2 x y x y.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
x y EXCH y x.
- FALSE False.
- FREE<freevar> cell.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
- GLOBAL<global> value.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
ns name args IMPORT value.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
a i INDEX elem.
x y INPLACE_ADD z where z is x+y or x.extend(y).
- ITERJMP<addr> elem (and fall through) [acts on topmost iterator].
- ITERPOP - [pops the iterator stack].
iterable ITERPUSH - [pushes the iterator stack].
- JMP<addr> -.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
from1 ..
- LOCAL<local> value.
binary comparisons (order must match Token).
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
- MAKEDICT dict.
defaults+freevars MAKEFUNC<func> fn.
x1 ..
- MAKEPROTO proto.
x1 ..
- MANDATORY Mandatory [sentinel value for required kwonly args].
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
- NONE None.
- NOP -.
value NOT bool.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
binary arithmetic (order must match Token).
x POP -.
- PREDECLARED<name> value.
value RETURN -.
value cell SETCELL -.
dict key value SETDICT -.
dict key value SETDICTUNIQ -.
x y SETFIELD<name> - x.name = y.
value SETGLOBAL<global> -.
a i new SETINDEX -.
value SETLOCAL<local> -.
proto k v SETDICTUNIQ -.
x1 ..
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
x lo hi step SLICE slice.
"x DUP x x" is a "stack picture" that describes the state of the stack before and after execution of the instruction.
x TILDE ~x.
- TRUE True.
x UMINUS -x.
- UNIVERSAL<name> value.
iterable UNPACK<n> vn ..
x UPLUS x.
Increment this to force recompilation of saved bytecode files.

# Variables

Disassemble causes the assembly code for each function to be printed to stderr as it is generated.

# Structs

A Binding is the name and position of a binding identifier.
A Funcode is the code of a compiled exprcore function.
A Program is a exprcore file in executable form.

# Type aliases

No description provided by the author