Mercurial > python-compiler.rs
comparison 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 |
comparison
equal
deleted
inserted
replaced
21:7af637f444d1 | 22:25b202005d1d |
---|---|
47 } | 47 } |
48 }; | 48 }; |
49 | 49 |
50 //python_dump::dump_module(&module); | 50 //python_dump::dump_module(&module); |
51 let module_ast = ast_convert::convert_ast("__main__".to_string(), &module); | 51 let module_ast = ast_convert::convert_ast("__main__".to_string(), &module); |
52 ast_dump::dump_ast(&module_ast); | 52 println!("{}", ast_dump::dump_ast(&module_ast)); |
53 //let scoped_ast = ast_scope::scope_ast(vec!(module_ast)); | 53 //let scoped_ast = ast_scope::scope_ast(vec!(module_ast)); |
54 //println!("{:#?}", scoped_ast); | 54 //println!("{:#?}", scoped_ast); |
55 //let new_scoped_ast = ast_scope::check_scoping(scoped_ast); | 55 //let new_scoped_ast = ast_scope::check_scoping(scoped_ast); |
56 //println!("{:#?}", new_scoped_ast); | 56 //println!("{:#?}", new_scoped_ast); |
57 //ast_rewrite::rewrite_ast(module_ast); | 57 //ast_rewrite::rewrite_ast(module_ast); |