mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-08 15:58:47 +00:00
Merge branch 'master' of github.com:dboulytchev/compiler-workout
* 'master' of github.com:dboulytchev/compiler-workout: Added missed CONST instruction
This commit is contained in:
commit
def2a03bc8
1 changed files with 1 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ open Language
|
||||||
(* The type for the stack machine instructions *)
|
(* The type for the stack machine instructions *)
|
||||||
@type insn =
|
@type insn =
|
||||||
(* binary operator *) | BINOP of string
|
(* binary operator *) | BINOP of string
|
||||||
|
(* put a constant on the stack *) | CONST of int
|
||||||
(* read to stack *) | READ
|
(* read to stack *) | READ
|
||||||
(* write from stack *) | WRITE
|
(* write from stack *) | WRITE
|
||||||
(* load a variable to the stack *) | LD of string
|
(* load a variable to the stack *) | LD of string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue