From b16b70fd40ffc72ff861afe0517cba0e37ba1145 Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 6 Jul 2022 14:06:20 +0200 Subject: Implement most of the binary operations --- pkg/lang/vm/text/op.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pkg/lang/vm/text') diff --git a/pkg/lang/vm/text/op.go b/pkg/lang/vm/text/op.go index 17f4847..d438a25 100644 --- a/pkg/lang/vm/text/op.go +++ b/pkg/lang/vm/text/op.go @@ -28,10 +28,15 @@ var ( code.OpAnchorType: "anchor_type", code.OpAdd: "add", code.OpSub: "sub", + code.OpMul: "mul", + code.OpDiv: "div", code.OpMod: "mod", - code.OpIndex: "index", - code.OpLt: "lt", + code.OpEq: "eq", + code.OpGt: "gt", + code.OpLt: "lt", code.OpLte: "lte", + code.OpGte: "gte", + code.OpIndex: "index", code.OpCall: "call", code.OpJmp: "jmp", code.OpJt: "jt", -- cgit 1.4.1