2026-01-16 20:19:12 +01:00
|
|
|
#include "utils/ast/ast_end.h"
|
|
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
|
|
bool ast_is_end(struct ast *node)
|
|
|
|
|
{
|
|
|
|
|
assert(node != NULL);
|
|
|
|
|
return node->type == AST_END;
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-16 20:31:30 +01:00
|
|
|
struct ast *ast_create_end(void)
|
2026-01-16 20:19:12 +01:00
|
|
|
{
|
|
|
|
|
return ast_create(AST_END, NULL);
|
|
|
|
|
}
|