Home
last modified time | relevance | path

Searched refs:ast (Results 1 – 25 of 33) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_ast.py3 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 …]
Dtest_transformer.py6 from compiler import transformer, ast
20 self.assertIsInstance(a, ast.Module)
22 self.assertIsInstance(child1, ast.Stmt)
24 self.assertIsInstance(child2, ast.Assign)
Dtest_compile.py474 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')
Dtest_compiler.py3 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/
Dtest_unparse.py7 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)
Dunparse.py3 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)
Dexample.py25 ast = parser.suite(source)
26 return ModuleInfo(ast.totuple(), basename)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/
Ddemo.py32 ast = compiler.parse(buf)
33 compiler.walk(ast, mf)
Dast.txt1 # 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/
Dfuture.py5 from compiler import ast, walk
9 if not isinstance(stmt, ast.From):
Dsyntax.py12 from compiler import ast, walk
Dvisitor.py1 from compiler import ast
Dsymbols.py3 from compiler import ast
386 if isinstance(node.node, ast.Name):
396 if isinstance(test, ast.Const):
Dpycodegen.py8 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,
Dtransformer.py28 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/
Dspark.py724 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/
DPython2710.inf78 Python/ast.c
109 Python/Python-ast.c
DPy2710ReadMe.txt179 _ast Python/Python-ast.c
242 ast.py keyword.py sre_constants.py
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dsymtable.c165 _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/Python-2.7.10/Python/
Dsymtable.c167 _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/
DPythonCore.inf82 Python-$(PYTHON_VERSION)/Python/Python-ast.c
84 Python-$(PYTHON_VERSION)/Python/ast.c
DPythonReadMe.txt157 _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/
DGrammar126 # results in an ambiguity. ast.c makes sure it's a NAME.
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/
Dantlr.h134 #define zzcr_ast(ast,attr,tok,text) argument
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/
Dantlr.h146 #define zzcr_ast(ast,attr,tok,text) argument

12