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
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "utils/lists/lists.h"
|
||||
#include "utils/ast/ast.h"
|
||||
|
||||
/**
|
||||
|
|
@ -10,16 +11,10 @@
|
|||
*/
|
||||
bool ast_is_void(struct ast *node);
|
||||
|
||||
/**
|
||||
* Retrieves the if statement data from the given AST node.
|
||||
* Assumes that the node is of type AST_VOID.
|
||||
*/
|
||||
struct ast_void *ast_get_void(struct ast *node);
|
||||
|
||||
/**
|
||||
* Creates a new AST node representing NOTHING
|
||||
* WARNING: data will be a NULL pointer
|
||||
*/
|
||||
struct ast *ast_create_void(struct list *ast_list);
|
||||
struct ast *ast_create_void(void);
|
||||
|
||||
#endif /* ! AST_VOID_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue