From 420f452d354f8c3378bd4a9e2f97bcfd6846d6e7 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sun, 27 Oct 2024 20:22:36 -0400 Subject: [PATCH] More fixes found by self-parsing --- project/components/ast_types.hpp | 28 ++++++++++++++-------------- project/components/interface.hpp | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/project/components/ast_types.hpp b/project/components/ast_types.hpp index 1fe32e8..04817ca 100644 --- a/project/components/ast_types.hpp +++ b/project/components/ast_types.hpp @@ -711,7 +711,7 @@ struct AST_Stmt { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -726,7 +726,7 @@ struct AST_Stmt_Break { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -741,7 +741,7 @@ struct AST_Stmt_Case { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -756,7 +756,7 @@ struct AST_Stmt_Continue { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -771,7 +771,7 @@ struct AST_Stmt_Decl { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -786,7 +786,7 @@ struct AST_Stmt_Do { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -801,7 +801,7 @@ struct AST_Stmt_Expr { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -816,7 +816,7 @@ struct AST_Stmt_Else { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -831,7 +831,7 @@ struct AST_Stmt_If { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -846,7 +846,7 @@ struct AST_Stmt_For { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -861,7 +861,7 @@ struct AST_Stmt_Goto { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -876,7 +876,7 @@ struct AST_Stmt_Label { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -891,7 +891,7 @@ struct AST_Stmt_Switch { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; @@ -906,7 +906,7 @@ struct AST_Stmt_While { union { char _PAD_[ sizeof(SpecifierT) * AST::ArrSpecs_Cap + sizeof(AST*) ]; - } + }; CodeExpr Prev; CodeExpr Next; parser::Token* Tok; diff --git a/project/components/interface.hpp b/project/components/interface.hpp index 2dd3740..b06267a 100644 --- a/project/components/interface.hpp +++ b/project/components/interface.hpp @@ -166,7 +166,7 @@ namespace parser { } struct ParseInfo - +{ Arena FileMem; Arena TokMem; Arena CodeMem; @@ -175,7 +175,7 @@ struct ParseInfo Array Tokens; Array Errors; // Errors are allocated to a dedicated general arena. -; +}; CodeBody parse_file( StrC path ); #endif