String::is_equal added (bad last commit)

This commit is contained in:
2024-12-01 13:29:33 -05:00
parent f61c1c560d
commit 9e88cb8724
6 changed files with 302 additions and 7 deletions

View File

@ -21,7 +21,7 @@ void AST::append( AST* other )
}
AST*
Current = Back;
Current = Back;
Current->Next = other;
other->Prev = Current;
Back = other;
@ -50,6 +50,25 @@ bool AST::has_entries()
return NumEntries > 0;
}
inline
bool AST::is_body()
{
switch (Type)
{
case ECode::Enum_Body:
case ECode::Class_Body:
case ECode::Union_Body:
case ECode::Export_Body:
case ECode::Global_Body:
case ECode::Struct_Body:
case ECode::Function_Body:
case ECode::Namespace_Body:
case ECode::Extern_Linkage_Body:
return true;
}
return false;
}
inline
char const* AST::type_str()
{