diff options
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; |
