2024-11-18 09:54:27 +00:00
|
|
|
#ifndef DEBUG_H_
|
|
|
|
|
#define DEBUG_H_
|
|
|
|
|
|
2024-12-01 13:19:48 +00:00
|
|
|
#include <ivy/status.h>
|
2025-04-14 12:24:56 +01:00
|
|
|
#include <stdbool.h>
|
2024-12-01 13:19:48 +00:00
|
|
|
|
2024-11-18 09:54:27 +00:00
|
|
|
struct ivy_token;
|
2024-11-19 22:09:32 +00:00
|
|
|
struct ivy_asm_token;
|
2024-11-18 09:54:27 +00:00
|
|
|
|
2024-12-01 13:19:48 +00:00
|
|
|
struct ivy_ast_node;
|
|
|
|
|
struct ivy_ast_node_iterator;
|
|
|
|
|
|
2025-04-14 12:24:56 +01:00
|
|
|
enum ivy_ast_iteration_type;
|
|
|
|
|
|
|
|
|
|
struct print_ast_node_args {
|
|
|
|
|
bool indent;
|
|
|
|
|
bool postorder;
|
|
|
|
|
};
|
|
|
|
|
|
2024-11-18 09:54:27 +00:00
|
|
|
extern void print_lex_token(struct ivy_token *tok);
|
2024-11-19 22:09:32 +00:00
|
|
|
extern void print_asm_lex_token(struct ivy_asm_token *tok);
|
2024-11-18 09:54:27 +00:00
|
|
|
|
2024-12-01 13:19:48 +00:00
|
|
|
extern enum ivy_status print_ast_node(
|
2025-04-14 12:24:56 +01:00
|
|
|
struct ivy_ast_node *node, enum ivy_ast_iteration_type type,
|
|
|
|
|
struct ivy_ast_node_iterator *it, void *arg);
|
2024-12-01 13:19:48 +00:00
|
|
|
|
2024-11-18 09:54:27 +00:00
|
|
|
#endif
|