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