summaryrefslogtreecommitdiff
path: root/hobgoblin/src
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-11-06 15:25:33 +0000
committerMichael Williamson <mike@zwobble.org>2026-11-06 15:25:33 +0000
commit5a7995056e6e8aa2db573c7ab5ce4f86e4267d73 (patch)
tree1d185901f5e5856a22d3fec9dd6faa1b9478ab66 /hobgoblin/src
parenta1d3da9e2c2e0526a2d004cda035e761626b2f85 (diff)
Parse equals operation
Diffstat (limited to 'hobgoblin/src')
-rw-r--r--hobgoblin/src/ast/untyped.hob12
1 files changed, 12 insertions, 0 deletions
diff --git a/hobgoblin/src/ast/untyped.hob b/hobgoblin/src/ast/untyped.hob
index 0acdfbc..6e7eec7 100644
--- a/hobgoblin/src/ast/untyped.hob
+++ b/hobgoblin/src/ast/untyped.hob
@@ -154,12 +154,24 @@ struct UntypedReturnNode {
// == Expressions ==
sum UntypedExpressionNode {
+ variant UntypedBinaryOperationNode;
variant UntypedCallNode;
variant UntypedFunctionExpressionNode;
variant UntypedMemberAccessNode;
variant UntypedReferenceNode;
}
+struct UntypedBinaryOperationNode {
+ field operator: UntypedBinaryOperator;
+ field left: UntypedExpressionNode;
+ field right: UntypedExpressionNode;
+ field source: Source;
+}
+
+enum UntypedBinaryOperator {
+ variant equals;
+}
+
struct UntypedCallNode {
field receiver: UntypedExpressionNode;
field args: List[UntypedExpressionNode];