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

14 lines
228 B
C

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