Mercurial > python-compiler.rs
comparison src/main.rs @ 88:5923cd4bfc36
Remove bitrotten code.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 22 Jun 2016 23:09:12 +0100 |
parents | d255a932553f |
children | 4e62a8927dcc |
comparison
equal
deleted
inserted
replaced
87:624393ed3b0b | 88:5923cd4bfc36 |
---|---|
3 #[cfg(test)] | 3 #[cfg(test)] |
4 mod tests; | 4 mod tests; |
5 | 5 |
6 mod python_tb; | 6 mod python_tb; |
7 mod python_parse; | 7 mod python_parse; |
8 mod python_dump; | |
9 mod python_ast; | 8 mod python_ast; |
10 mod ast_convert; | 9 mod ast_convert; |
11 mod ast_dump; | 10 mod ast_dump; |
12 //mod ast_scope; | 11 //mod ast_scope; |
13 //mod ast_rewrite; | 12 //mod ast_rewrite; |
48 python_tb::traceback(err); | 47 python_tb::traceback(err); |
49 std::process::exit(3); | 48 std::process::exit(3); |
50 } | 49 } |
51 }; | 50 }; |
52 | 51 |
53 //python_dump::dump_module(&module); | |
54 let module_ast = ast_convert::convert_ast("__main__".to_string(), &module); | 52 let module_ast = ast_convert::convert_ast("__main__".to_string(), &module); |
55 println!("{}", ast_dump::dump_ast(&module_ast)); | 53 println!("{}", ast_dump::dump_ast(&module_ast)); |
56 //let scoped_ast = ast_scope::scope_ast(vec!(module_ast)); | 54 //let scoped_ast = ast_scope::scope_ast(vec!(module_ast)); |
57 //println!("{:#?}", scoped_ast); | 55 //println!("{:#?}", scoped_ast); |
58 //let new_scoped_ast = ast_scope::check_scoping(scoped_ast); | 56 //let new_scoped_ast = ast_scope::check_scoping(scoped_ast); |