From 542e15041ea1d93e74a06c588f16ce7956d6a9bb Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 30 Aug 2026 17:50:49 +0200 Subject: add: parse stack directive --- src/parser/ast.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/parser/ast.h') diff --git a/src/parser/ast.h b/src/parser/ast.h index 3fa80da..8281085 100644 --- a/src/parser/ast.h +++ b/src/parser/ast.h @@ -67,6 +67,7 @@ enum StatementKind STATEMENT_SYSCALL, STATEMENT_IF, STATEMENT_CALL, + STATEMENT_STACK, }; struct AssignStatement @@ -103,6 +104,12 @@ struct CallStatement size_t arg_capacity; }; +struct StackStatement +{ + struct Token name; + struct Token size; +}; + struct Statement { enum StatementKind kind; @@ -113,6 +120,7 @@ struct Statement struct GotoStatement jump; struct IfStatement branch; struct CallStatement call; + struct StackStatement stack; }; }; -- cgit v1.3