2026-01-27 00:30:19 +01:00
|
|
|
#ifndef AST_NEG_H
|
|
|
|
|
#define AST_NEG_H
|
|
|
|
|
|
|
|
|
|
#include "ast_base.h"
|
|
|
|
|
|
|
|
|
|
struct ast_neg
|
|
|
|
|
{
|
|
|
|
|
bool negation; // True negates the child's output
|
2026-01-27 19:56:33 +01:00
|
|
|
struct ast *child;
|
2026-01-27 00:30:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct ast_neg *ast_get_neg(struct ast *node);
|
2026-01-27 19:56:33 +01:00
|
|
|
struct ast *ast_create_neg(bool negation, struct ast *child);
|
|
|
|
|
void ast_free_neg(struct ast_neg *node);
|
2026-01-27 00:30:19 +01:00
|
|
|
|
|
|
|
|
#endif /* ! AST_NEG_H */
|