frontend: implement an ast node printer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user