17 lines
267 B
C
17 lines
267 B
C
|
|
#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);
|
||
|
|
}
|