Mercurial > python-compiler.rs
diff src/main.rs @ 22:25b202005d1d
Return a String from ast_dump instead of printing it directly.
author | Bastien Orivel <eijebong@bananium.fr> |
---|---|
date | Fri, 03 Jun 2016 19:00:09 +0200 |
parents | 38b0d63697b1 |
children | 5a7c3393382b |
line wrap: on
line diff
--- a/src/main.rs +++ b/src/main.rs @@ -49,7 +49,7 @@ fn main() { //python_dump::dump_module(&module); let module_ast = ast_convert::convert_ast("__main__".to_string(), &module); - ast_dump::dump_ast(&module_ast); + println!("{}", ast_dump::dump_ast(&module_ast)); //let scoped_ast = ast_scope::scope_ast(vec!(module_ast)); //println!("{:#?}", scoped_ast); //let new_scoped_ast = ast_scope::check_scoping(scoped_ast);