diff options
| author | hachem <im@hachem.wtf> | 2026-08-30 17:50:49 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-30 17:50:49 +0200 |
| commit | 542e15041ea1d93e74a06c588f16ce7956d6a9bb (patch) | |
| tree | 3dda2b5c2b1b5f4d572a837bec879635371c0a20 /src/parser/ast.h | |
| parent | a07b22097f3758558f4b35aa5aa5d8c1afc3402b (diff) | |
add: parse stack directive
Diffstat (limited to 'src/parser/ast.h')
| -rw-r--r-- | src/parser/ast.h | 8 |
1 files changed, 8 insertions, 0 deletions
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; }; }; |
