gen_src supports swapping AST_KINDS macros in parser.hpp

- Minor fixes to gencpp
- Adjust .clang-format to be similar to the codebase's conventions
This commit is contained in:
2024-05-05 00:09:38 -04:00
parent cd3803fb37
commit bc45aa80b6
6 changed files with 894 additions and 7 deletions
+1 -2
View File
@@ -1526,7 +1526,6 @@ void CodeBody::to_string( String& result )
if (left > 1) switch (ast->Type)
{
case ECode::Enum_Body:
case ECode::Union_Body:
result.append("\n");
}
++curr;
@@ -7605,7 +7604,7 @@ namespace parser
if ( check( TokType::Operator ) && currtok.Text[0] == '[' && currtok.Text[1] == ']' )
{
Code array_expr = untyped_str( currtok );
Code array_expr = untyped_str( get_cached_string(txt(" ")) );
eat( TokType::Operator );
// []