summaryrefslogtreecommitdiff
path: root/hobgoblin/src
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-07-03 14:39:20 +0100
committerMichael Williamson <mike@zwobble.org>2026-07-03 14:39:20 +0100
commit53475694bb32e0df968a9d86b45e4a899fa166e9 (patch)
tree9fb5aa40cf50197c8f99aaa48634745630a725c5 /hobgoblin/src
parent76259b1c4cb97d59573673fa7e645a394b27198e (diff)
Add call expressions to Rust AST
Diffstat (limited to 'hobgoblin/src')
-rw-r--r--hobgoblin/src/output/lang/rust/ast.hob6
1 files changed, 6 insertions, 0 deletions
diff --git a/hobgoblin/src/output/lang/rust/ast.hob b/hobgoblin/src/output/lang/rust/ast.hob
index 42497ff..ffa6ee0 100644
--- a/hobgoblin/src/output/lang/rust/ast.hob
+++ b/hobgoblin/src/output/lang/rust/ast.hob
@@ -89,6 +89,7 @@ struct RustExpressionStatement {
sum RustExpression {
variant RustBlockExpression;
variant RustBoolLiteral;
+ variant RustCallExpression;
variant RustPathInExpression;
}
@@ -101,6 +102,11 @@ struct RustBoolLiteral {
field value: Bool;
}
+struct RustCallExpression {
+ field function: RustExpression;
+ field args: List[RustExpression];
+}
+
// == Types ==
sum RustType {