about summary refs log tree commit diff
path: root/pkg/lang/ast/op.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/ast/op.go')
-rw-r--r--pkg/lang/ast/op.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkg/lang/ast/op.go b/pkg/lang/ast/op.go
new file mode 100644
index 0000000..a708c78
--- /dev/null
+++ b/pkg/lang/ast/op.go
@@ -0,0 +1,26 @@
+package ast
+
+type BinOp int
+
+const (
+	BinOpAdd BinOp = iota
+	BinOpSub
+	BinOpMul
+	BinOpDiv
+	BinOpMod
+
+	BinOpAssign
+	BinOpEq
+	BinOpNeq
+	BinOpLt
+	BinOpLte
+	BinOpGt
+	BinOpGte
+)
+
+type UnOp int
+
+const (
+	UnOpNot UnOp = iota
+	UnOpNeg
+)