Home
last modified time | relevance | path

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

/third_party/python/Lib/test/
H A Dtest_asdl_parser.py1 """Tests for the asdl parser in Parser/asdl.py"""
23 # Loads the asdl module dynamically, since it's not in a real importable
25 # Parses Python.asdl into an ast.Module and run the check on it.
29 'asdl', os.path.join(parser_dir, 'asdl.py'))
30 spec = importlib.util.spec_from_loader('asdl', loader)
33 cls.asdl = module
34 cls.mod = cls.asdl.parse(os.path.join(parser_dir, 'Python.asdl'))
[all...]
/third_party/python/Doc/tools/extensions/
H A Dasdl_highlight.py12 from asdl import builtin_types
17 aliases = ["asdl"]
18 filenames = ["*.asdl"]
53 lexers["asdl"] = ASDLLexer()
/third_party/python/Parser/
H A Dasdl_c.py13 import asdl namespace
22 This function special cases the default types provided by asdl.
24 if name in asdl.builtin_types:
90 if isinstance(obj, asdl.Product) or isinstance(obj, asdl.Constructor):
105 class EmitVisitor(asdl.VisitorBase):
137 class MetadataVisitor(asdl.VisitorBase):
294 assert type in asdl.builtin_types, type
328 assert type in asdl.builtin_types, type
1658 mod = asdl
[all...]

Completed in 3 milliseconds