feat(pretty-print): Just casually implemented the graphviz representation of parsed AST
This commit is contained in:
parent
ae2ddf0771
commit
f6573d81f0
3 changed files with 95 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue