feat(pretty-print): Just casually implemented the graphviz representation of parsed AST

This commit is contained in:
Jean Herail 2026-01-14 20:42:31 +01:00
parent ae2ddf0771
commit f6573d81f0
3 changed files with 95 additions and 2 deletions

View file

@ -70,4 +70,9 @@ struct ast *ast_create_if(struct ast *condition, struct ast *then_clause,
*/
struct ast *ast_create_cmd(struct list *cmd);
/**
* Prints the Graphviz DOT representation of the given AST to stdout.
*/
void ast_print_dot(struct ast *ast);
#endif /* ! AST_H */