Mercurial > python-compiler.rs
diff src/main.rs @ 13:38b0d63697b1
Import the full AST grammar from CPython 3.5.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 02 Jun 2016 05:33:23 +0100 |
parents | fa7e285f88e7 |
children | 25b202005d1d |
line wrap: on
line diff
--- a/src/main.rs +++ b/src/main.rs @@ -5,8 +5,8 @@ mod python_parse; mod python_dump; mod python_ast; mod ast_convert; -mod ast_scope; mod ast_dump; +//mod ast_scope; //mod ast_rewrite; //mod ast_type; @@ -50,8 +50,10 @@ fn main() { //python_dump::dump_module(&module); let module_ast = ast_convert::convert_ast("__main__".to_string(), &module); ast_dump::dump_ast(&module_ast); - let scoped_ast = ast_scope::scope_ast(vec!(module_ast)); - println!("{:#?}", scoped_ast); + //let scoped_ast = ast_scope::scope_ast(vec!(module_ast)); + //println!("{:#?}", scoped_ast); + //let new_scoped_ast = ast_scope::check_scoping(scoped_ast); + //println!("{:#?}", new_scoped_ast); //ast_rewrite::rewrite_ast(module_ast); //ast_type::type_ast(scoped_ast); }