mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Added CONST instruction
This commit is contained in:
parent
9f9e912032
commit
a133fe9ca9
1 changed files with 1 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ open GT
|
|||
(* The type for the stack machine instructions *)
|
||||
@type insn =
|
||||
(* binary operator *) | BINOP of string
|
||||
(* put a constant on the stack *) | CONST of int
|
||||
(* read to stack *) | READ
|
||||
(* write from stack *) | WRITE
|
||||
(* load a variable to the stack *) | LD of string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue