diff options
| author | hachem <im@hachem.wtf> | 2026-08-31 00:19:10 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-31 00:19:10 +0200 |
| commit | 3e20038bbf7206e2270655418d7884ccfe91a4e4 (patch) | |
| tree | dfc7bf806a00c1dbec6c889351c108702a0e9d40 /src/parser/ast.h | |
| parent | 8eac30c13cfa4f47a8a0aa0772b96f0813fe33a5 (diff) | |
add directives and directive based entry points
Diffstat (limited to 'src/parser/ast.h')
| -rw-r--r-- | src/parser/ast.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/parser/ast.h b/src/parser/ast.h index 6071c4a..a98f43b 100644 --- a/src/parser/ast.h +++ b/src/parser/ast.h @@ -1,6 +1,7 @@ #pragma once #include <stddef.h> +#include <stdint.h> #include <stdbool.h> #include "lexer/lexer.h" @@ -146,8 +147,18 @@ struct ProcDecl size_t body_capacity; }; +struct Config +{ + uint32_t bits; + bool has_entry; + struct Token entry; + bool logical_registers; +}; + struct Program { + struct Config config; + struct ConstDecl* consts; size_t const_count; size_t const_capacity; |
