Re-functionnal pretty-printing
This commit is contained in:
parent
f6573d81f0
commit
0ede8d3eef
3 changed files with 16 additions and 18 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue