refactor(ast): one file per ast_type -- UNSTABLE (3)
This commit is contained in:
parent
68d8a1fd13
commit
e3ec484621
9 changed files with 76 additions and 9 deletions
|
|
@ -1 +1,16 @@
|
|||
#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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue