2026-01-14 20:53:57 +01:00
|
|
|
#include "utils/ast/ast_void.h"
|
2026-01-15 15:53:56 +01:00
|
|
|
|
|
|
|
|
#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);
|
|
|
|
|
}
|