Permalink
Browse files

Move the ASDL front end into its own module.

- Rename some variables for consistency.
- Use the new API in asdl/asdl_demo.py.
  • Loading branch information...
Andy Chu
Andy Chu committed Aug 17, 2018
1 parent 9148d86 commit 53de7552f91f274c9a3fe1b1fb4eb3d7e67c0945
Showing with 409 additions and 402 deletions.
  1. +2 −2 asdl/arith_ast.py
  2. +0 −380 asdl/asdl_.py
  3. +5 −11 asdl/asdl_demo.py
  4. +390 −0 asdl/front_end.py
  5. +2 −1 asdl/gen_cpp.py
  6. +2 −1 osh/ast_gen.py
  7. +8 −7 osh/meta.py
View
@@ -5,12 +5,12 @@
import sys
from asdl import asdl_ as asdl
from asdl import front_end
from asdl import py_meta
from core import util
f = util.GetResourceLoader().open('asdl/arith.asdl')
_asdl_module, _type_lookup = asdl.LoadSchema(f, {}) # no app_types
_asdl_module, _type_lookup = front_end.LoadSchema(f, {}) # no app_types
f.close()
root = sys.modules[__name__]
Oops, something went wrong.

0 comments on commit 53de755

Please sign in to comment.