Added CONST instruction

This commit is contained in:
Dmitry Boulytchev 2018-02-21 19:49:18 +03:00
parent 9f9e912032
commit a133fe9ca9

View file

@ -3,6 +3,7 @@ open GT
(* 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