42sh/src/utils/ast/ast_end.c
2026-01-19 18:15:57 +00:00

16 lines
258 B
C

#include "ast_end.h"
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
bool ast_is_end(struct ast *node)
{
assert(node != NULL);
return node->type == AST_END;
}
struct ast *ast_create_end(void)
{
return ast_create(AST_END, NULL);
}