Skip to main content

Internals

append

(a Array) (x Any) | append | ([..., x] Array)

Appends x to array a, leaves a on the stack.

array

| array | Array

Constructs an empty Array and pushes it to the stack.

assoc

(ob Object) (key String) (value Any) | assoc | (ob Object)

Sets key on the ob to value and leaves ob on the stack.

call

(op-name String) (args [Any]) | call | (result Any)

Calls an operator op-name with arguments args and puts the result of its execution on the stack.

callf

(op-name String) (args [Any]) | callf | (result Any)

Calls an operator op-name with arguments args and puts the result of its execution on the stack.

const

| const(x Any) | (x Any)

Pushes a constant x of any type onto the stack.

dup

(x Any) | dup | (x Any) (x Any)

Duplicates the topmost value on the stack.

get-member

(ob Object) | get-member(key String) | (val Any)

Gets value val from key key in object ob and pushes val onto the stack. Will return Nil if key is not in ob.

mark

| mark | <mark>

Sets mark on top of the stack.

object

| object | Object

Constructs an empty Object and pushes it to the stack.

var

| var(var-name String) | (value Any)

Pushes the value of a variable named var-name onto the stack.

Rate this page