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:
Podkopaev Anton 2018-03-05 15:24:53 +03:00
commit def2a03bc8

View file

@ -4,6 +4,7 @@ open Language
(* 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