2026-01-19 18:15:38 +00:00
|
|
|
#include "ast_end.h"
|
2026-01-16 20:19:12 +01:00
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
2026-01-17 19:11:55 +01:00
|
|
|
#include <stdlib.h>
|
2026-01-16 20:19:12 +01:00
|
|
|
|
|
|
|
|
bool ast_is_end(struct ast *node)
|
|
|
|
|
{
|
2026-01-27 00:30:19 +01:00
|
|
|
return node != NULL && node->type == AST_END;
|
2026-01-16 20:19:12 +01:00
|
|
|
}
|
|
|
|
|
|
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);
|
|
|
|
|
}
|