diff --git a/Readme.md b/Readme.md index c0d3118..537721f 100644 --- a/Readme.md +++ b/Readme.md @@ -6,7 +6,7 @@ The library API is a composition of code element constructors. These build up a code AST to then serialize with a file builder. This code base attempts follow the [handmade philosophy](https://handmade.network/manifesto), -its not meant to be a black box metaprogramming utility, it should be easy to intergrate into a user's their project domain. +its not meant to be a black box metaprogramming utility, it should be easy to intergrate into a user's project domain. ## Notes diff --git a/project/components/interface.parsing.cpp b/project/components/interface.parsing.cpp index 619c5df..b326557 100644 --- a/project/components/interface.parsing.cpp +++ b/project/components/interface.parsing.cpp @@ -1428,16 +1428,16 @@ CodeAttributes parse_attributes() else if ( check(TokType::Decl_GNU_Attribute) ) { - eat(TokType::BraceCurly_Open); - eat(TokType::BraceCurly_Open); + eat(TokType::Capture_Start); + eat(TokType::Capture_Start); - while ( left && currtok.Type != TokType::BraceCurly_Close ) + while ( left && currtok.Type != TokType::Capture_End ) { eat(currtok.Type); } - eat(TokType::BraceCurly_Close); - eat(TokType::BraceCurly_Close); + eat(TokType::Capture_End); + eat(TokType::Capture_End); s32 len = ( (sptr)prevtok.Text + prevtok.Length ) - (sptr)start.Text; } @@ -1445,14 +1445,14 @@ CodeAttributes parse_attributes() else if ( check(TokType::Decl_MSVC_Attribute) ) { eat( TokType::Decl_MSVC_Attribute ); - eat( TokType::BraceCurly_Open); + eat( TokType::Capture_Start); - while ( left && currtok.Type != TokType::BraceCurly_Close ) + while ( left && currtok.Type != TokType::Capture_End ) { eat(currtok.Type); } - eat(TokType::BraceCurly_Close); + eat(TokType::Capture_End); s32 len = ( (sptr)prevtok.Text + prevtok.Length ) - (sptr)start.Text; } diff --git a/test/SOA.cpp b/test/SOA.cpp index 5826cb7..6f375a3 100644 --- a/test/SOA.cpp +++ b/test/SOA.cpp @@ -118,8 +118,9 @@ void check_SOA() { log_fmt("\ncheck_SOA:"); gen::init(); + Builder soa_test = Builder::open( "SOA.gen.hpp" ); - + soa_test.print( parse_using( code( using u16 = unsigned short; ))); @@ -136,6 +137,7 @@ void check_SOA() u64 D; }; )) + , 100 )); soa_test.write(); diff --git a/test/test.cpp b/test/test.cpp index ea42ffe..24e0a87 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -18,7 +18,7 @@ int gen_main() check_SOA(); - check_singleheader_ast(); + // check_singleheader_ast(); return 0; }