20 lines
367 B
C
20 lines
367 B
C
#ifndef AST_VOID_H
|
|
#define AST_VOID_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "../lists/lists.h"
|
|
#include "ast_base.h"
|
|
|
|
/**
|
|
* Checks if the given AST node is of type AST_VOID.
|
|
*/
|
|
bool ast_is_void(struct ast *node);
|
|
|
|
/**
|
|
* Creates a new AST node representing NOTHING
|
|
* WARNING: data will be a NULL pointer
|
|
*/
|
|
struct ast *ast_create_void(void);
|
|
|
|
#endif /* ! AST_VOID_H */
|