Commit e5395291cdfd00e2cf2e09119f4e50dec728b758

Thomas de Grivel 2024-04-04T17:02:59

new syntax for defoperator

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/test/ic3/defoperator.out.expected b/test/ic3/defoperator.out.expected
index 3e2b8db..db5e566 100644
--- a/test/ic3/defoperator.out.expected
+++ b/test/ic3/defoperator.out.expected
@@ -1,4 +1,9 @@
-defoperator :operator_muul :**** cfn Tag "tag_mul" (Tag, Tag, Result) 11 :left
+def operator_muul = %C3.Operator{
+  sym: :****,
+  symbol_value: cfn Tag "tag_mul" (Tag, Tag, Result),
+  operator_precedence: 11,
+  operator_associativity: :left
+}
 C3.operator_muul
 4 **** 4
 16