Extends
Methods
-
Add()
-
stack: ... a b -> ... a+b -
Divide()
-
stack: ... a b -> ... a/b -
Input()
-
stack: ... -> ... input -
Load()
-
stack: ... -> ... memory[addr] -
Minus()
-
stack: ... a -> ... -a -
Multiply()
-
stack: ... a b -> ... a*b -
Pop()
-
stack: ... val -> ... -
Push()
-
stack: ... -> ... result -
Puts()
-
stack: ... val -> ... | puts(val) -
Store()
-
stack: ... val -> ... val | memory[a]: val -
Subtract()
-
stack: ... a b -> ... a-b -
gen()
-
returns
code.length -
ins()
-
returns instruction function
-
run()
-
Creates stack machine
- Inherited From:
- Source:
-
toString()
-
Represents
codeas text- Inherited From:
- Source: