Searched refs:asdl (Results 1 - 3 of 3) sorted by relevance

/external/python/cpython3/Lib/test/
H A Dtest_asdl_parser.py1 """Tests for the asdl parser in Parser/asdl.py"""
22 # Loads the asdl module dynamically, since it's not in a real importable
24 # Parses Python.asdl into an ast.Module and run the check on it.
28 'asdl', os.path.join(parser_dir, 'asdl.py'))
29 cls.asdl = loader.load_module()
30 cls.mod = cls.asdl.parse(os.path.join(parser_dir, 'Python.asdl'))
31 cls.assertTrue(cls.asdl
[all...]
/external/python/cpython2/Parser/
H A Dasdl_c.py9 import asdl namespace
17 This function special cases the default types provided by asdl:
21 if isinstance(name, asdl.Id):
23 if name in asdl.builtin_types:
82 class EmitVisitor(asdl.VisitorBase):
171 assert type in asdl.builtin_types, type
1191 mod = asdl.parse(srcfile)
1193 if not asdl.check(mod):
1199 f.write('#include "asdl.h"\n\n')
/external/python/cpython3/Parser/
H A Dasdl_c.py6 import asdl namespace
14 This function special cases the default types provided by asdl.
16 if name in asdl.builtin_types:
75 class EmitVisitor(asdl.VisitorBase):
172 assert type in asdl.builtin_types, type
205 assert type in asdl.builtin_types, type
1276 mod = asdl.parse(srcfile)
1280 if not asdl.check(mod):
1286 f.write('#include "asdl.h"\n\n')

Completed in 114 milliseconds