Re-functionnal pretty-printing

This commit is contained in:
Jean Herail 2026-01-21 19:57:44 +01:00
parent f6573d81f0
commit 0ede8d3eef
3 changed files with 16 additions and 18 deletions

View file

@ -60,6 +60,11 @@ int main(int argc, char **argv)
// Call the parser to get the AST
struct ast *command_ast = get_ast(); // We'll pass the options later
if (options.pretty_print)
{
ast_print_dot(command_ast);
}
// Call the executor with the AST
r = execution(command_ast);