From 53475694bb32e0df968a9d86b45e4a899fa166e9 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 3 Jul 2026 14:39:20 +0100 Subject: Add call expressions to Rust AST --- hobgoblin/src/output/lang/rust/ast.hob | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hobgoblin/src') 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 { -- cgit v1.2.3