ast_dot function written to display the abstract syntax tree