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

17 lines
273 B
C
Raw Normal View History

#include "utils/ast/ast_void.h"
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>
bool ast_is_void(struct ast *node)
{
assert(node != NULL);
return node->type == AST_VOID;
}
struct ast *ast_create_void(void)
{
return ast_create(AST_VOID, NULL);
}