/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_ast.py | 3 import ast 130 if not isinstance(ast_node, ast.AST) or ast_node._fields is None: 132 if isinstance(ast_node, (ast.expr, ast.stmt, ast.excepthandler)): 149 ast_tree = compile(i, "?", kind, ast.PyCF_ONLY_AST) 154 slc = ast.parse("x[::]").body[0].value.slice 157 self.assertIsInstance(slc.step, ast.Name) 161 im = ast.parse("from . import y").body[0] 165 self.assertTrue(issubclass(ast.For, ast.stmt)) 166 self.assertTrue(issubclass(ast.Name, ast.expr)) 167 self.assertTrue(issubclass(ast.stmt, ast.AST)) [all …]
|
D | test_transformer.py | 6 from compiler import transformer, ast 20 self.assertIsInstance(a, ast.Module) 22 self.assertIsInstance(child1, ast.Stmt) 24 self.assertIsInstance(child2, ast.Assign)
|
D | test_compile.py | 474 ast = compile(code, '%s2' % fname, 'exec', _ast.PyCF_ONLY_AST) 475 self.assertTrue(type(ast) == _ast.Module) 476 co2 = compile(ast, '%s3' % fname, 'exec') 489 ast = _ast.Module() 490 ast.body = [_ast.BoolOp()] 491 self.assertRaises(TypeError, compile, ast, '<ast>', 'exec')
|
D | test_compiler.py | 3 from compiler.ast import flatten 265 NOLINENO = (compiler.ast.Module, compiler.ast.Stmt, compiler.ast.Discard)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/parser/ |
D | test_unparse.py | 7 import ast 78 dump1 = ast.dump(ast1) 79 dump2 = ast.dump(ast2) 80 self.assertEqual(ast.dump(ast1), ast.dump(ast2)) 83 ast1 = compile(code1, filename, "exec", ast.PyCF_ONLY_AST) 87 ast2 = compile(code2, filename, "exec", ast.PyCF_ONLY_AST)
|
D | unparse.py | 3 import ast 199 if len(t.body) == 1 and isinstance(t.body[0], ast.TryExcept): 275 isinstance(t.orelse[0], ast.If)): 432 if isinstance(t.op, ast.USub) and isinstance(t.operand, ast.Num): 460 boolops = {ast.And: 'and', ast.Or: 'or'} 472 if isinstance(t.value, ast.Num) and isinstance(t.value.n, int): 574 tree = compile(source, filename, "exec", ast.PyCF_ONLY_AST)
|
D | example.py | 25 ast = parser.suite(source) 26 return ModuleInfo(ast.totuple(), basename)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/ |
D | demo.py | 32 ast = compiler.parse(buf) 33 compiler.walk(ast, mf)
|
D | ast.txt | 1 # This file describes the nodes of the AST in ast.py. The module is
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/ |
D | future.py | 5 from compiler import ast, walk 9 if not isinstance(stmt, ast.From):
|
D | syntax.py | 12 from compiler import ast, walk
|
D | visitor.py | 1 from compiler import ast
|
D | symbols.py | 3 from compiler import ast 386 if isinstance(node.node, ast.Name): 396 if isinstance(test, ast.Const):
|
D | pycodegen.py | 8 from compiler import ast, parse, walk, syntax 178 if isinstance(node, ast.Const): 964 if isinstance(elt, ast.Node): 1085 if isinstance(arg, ast.Keyword): 1544 ast.Getattr: AugGetattr, 1545 ast.Name: AugName, 1546 ast.Slice: AugSlice, 1547 ast.Subscript: AugSubscript,
|
D | transformer.py | 28 from compiler.ast import * 72 def extractLineNo(ast): argument 73 if not isinstance(ast[1], tuple): 75 return ast[2] 76 for child in ast[1:]:
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/ |
D | spark.py | 724 def __init__(self, ast): argument 725 self.ast = ast 735 node = self.ast 757 node = self.ast 781 def __init__(self, start, ast): argument 783 self.ast = ast 812 def match(self, ast=None): argument 813 if ast is None: 814 ast = self.ast 817 self.match_r(ast)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/ |
D | Python2710.inf | 78 Python/ast.c 109 Python/Python-ast.c
|
D | Py2710ReadMe.txt | 179 _ast Python/Python-ast.c 242 ast.py keyword.py sre_constants.py
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
D | symtable.c | 167 _Py_block_ty block, void *ast, int lineno); 168 static int symtable_exit_block(struct symtable *st, void *ast); 819 symtable_exit_block(struct symtable *st, void *ast) in symtable_exit_block() argument 839 void *ast, int lineno) in symtable_enter_block() argument 850 st->st_cur = ste_new(st, name, block, ast, lineno); in symtable_enter_block()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
D | symtable.c | 165 _Py_block_ty block, void *ast, int lineno); 166 static int symtable_exit_block(struct symtable *st, void *ast); 817 symtable_exit_block(struct symtable *st, void *ast) in symtable_exit_block() argument 837 void *ast, int lineno) in symtable_enter_block() argument 848 st->st_cur = ste_new(st, name, block, ast, lineno); in symtable_enter_block()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/ |
D | PythonCore.inf | 82 Python-$(PYTHON_VERSION)/Python/Python-ast.c 84 Python-$(PYTHON_VERSION)/Python/ast.c
|
D | PythonReadMe.txt | 157 _ast Python/Python-ast.c 220 ast.py keyword.py sre_constants.py
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Grammar/ |
D | Grammar | 126 # results in an ambiguity. ast.c makes sure it's a NAME.
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/ |
D | antlr.h | 134 #define zzcr_ast(ast,attr,tok,text) argument
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/ |
D | antlr.h | 146 #define zzcr_ast(ast,attr,tok,text) argument
|