Print AST as info

Debug channel barely suits for this case.
master
Yury Kurlykov 2020-04-28 04:38:13 +10:00
parent eea056550c
commit 6b4865af8d
Signed by: t1meshift
GPG Key ID: B133F3167ABF94D8
1 changed files with 3 additions and 4 deletions

View File

@ -74,8 +74,7 @@ def main():
ast_tree = from_parse_tree(tree) ast_tree = from_parse_tree(tree)
ascii_ast = to_ascii_tree(ast_tree) ascii_ast = to_ascii_tree(ast_tree)
logging.debug("Got an AST!") logging.info("Got an AST!\n%s", ascii_ast)
logging.debug(ascii_ast)
# TODO: run logic # TODO: run logic
sys.exit(0) sys.exit(0)
@ -99,8 +98,8 @@ def main():
ast_tree = from_parse_tree(tree) ast_tree = from_parse_tree(tree)
ascii_ast = to_ascii_tree(ast_tree) ascii_ast = to_ascii_tree(ast_tree)
logging.debug("Got an AST!") logging.info("Got an AST!")
logging.debug(ascii_ast) logging.info(ascii_ast)
# TODO: run logic # TODO: run logic
except EOFError: except EOFError:
print("Ctrl-D received, shutting down...") print("Ctrl-D received, shutting down...")