print funtion added, not tested

This commit is contained in:
2026-03-25 06:59:52 -06:00
parent 17be815ed0
commit f11b6f8c12
4 changed files with 50 additions and 0 deletions

View File

@@ -19,5 +19,9 @@ ASTNode *led(ASTNodeSlice *slice, size_t right_precedence);
uint8_t node_lbp(ASTNode node);
uint8_t node_rbp(ASTNode node);
AST parse(ASTNodeArray *arr);
ASTNode *parse_expr(ASTNodeSlice *slice, uint8_t min_bp);
void print_AST(AST tree);
void print_node(ASTNode *node, int depth);