frontend: implement an ast node printer

This commit is contained in:
2024-12-01 13:19:48 +00:00
parent c9dbc2e7e4
commit bb34e46c69
3 changed files with 220 additions and 2 deletions

View File

@@ -1,10 +1,18 @@
#ifndef DEBUG_H_
#define DEBUG_H_
#include <ivy/status.h>
struct ivy_token;
struct ivy_asm_token;
struct ivy_ast_node;
struct ivy_ast_node_iterator;
extern void print_lex_token(struct ivy_token *tok);
extern void print_asm_lex_token(struct ivy_asm_token *tok);
extern enum ivy_status print_ast_node(
struct ivy_ast_node *node, struct ivy_ast_node_iterator *it);
#endif