aboutsummaryrefslogtreecommitdiff
path: root/src/compile.zig
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-07-30 16:26:48 +0200
committerMathias Magnusson <mathias@magnusson.space>2025-07-30 16:26:48 +0200
commit132a8da9a41a6303d40c8ec936a31c9481581cbe (patch)
tree89d57f62a100467e5257f36078a07b1adfbf9bbc /src/compile.zig
parent222ec8886d246b7e1a54157fd974aa5291e1d464 (diff)
downloadhuginn-132a8da9a41a6303d40c8ec936a31c9481581cbe.tar.gz
implement `==`
Diffstat (limited to 'src/compile.zig')
-rw-r--r--src/compile.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compile.zig b/src/compile.zig
index ded8a45..8c734c7 100644
--- a/src/compile.zig
+++ b/src/compile.zig
@@ -164,6 +164,7 @@ pub const Instr = struct {
greater_than,
less_or_equal,
greater_or_equal,
+ equals,
};
pub fn sources(self: BinOp) Sources {
@@ -516,6 +517,7 @@ const ProcedureContext = struct {
.right_angle => .greater_than,
.left_angle_equal => .less_or_equal,
.right_angle_equal => .greater_or_equal,
+ .equal_equal => .equals,
},
},
},