From 3e20038bbf7206e2270655418d7884ccfe91a4e4 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 31 Aug 2026 00:19:10 +0200 Subject: add directives and directive based entry points --- src/parser/ast.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/parser/ast.h') 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 +#include #include #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; -- cgit v1.3