2026-01-14 20:32:51 +01:00
|
|
|
#ifndef AST_VOID_H
|
|
|
|
|
#define AST_VOID_H
|
|
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2026-01-15 17:12:06 +01:00
|
|
|
#include "utils/ast/ast_base.h"
|
2026-01-17 19:11:55 +01:00
|
|
|
#include "utils/lists/lists.h"
|
2026-01-14 20:32:51 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
|
|
*/
|
2026-01-15 15:53:56 +01:00
|
|
|
struct ast *ast_create_void(void);
|
2026-01-14 20:32:51 +01:00
|
|
|
|
|
|
|
|
#endif /* ! AST_VOID_H */
|