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

@ -368,6 +368,15 @@ CodeBody gen_ast_inlines()
return { rcast(AST*, ast)->duplicate() };
}
inline
bool <typename>::is_body()
{
if ( ast == nullptr )
{
return rcast(AST*, ast)->is_body();
}
return false;
}
inline
bool <typename>::is_equal( Code other )
{
if ( ast == nullptr || other.ast == nullptr )