42sh/src/utils/ast/ast_end.c

17 lines
267 B
C
Raw Normal View History

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;
}
struct ast *ast_create_end(end)
{
return ast_create(AST_END, NULL);
}