Home
last modified time | relevance | path

Searched refs:tree (Results 1 – 25 of 115) sorted by relevance

12345

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dparsermodule.c613 static int validate_expr_tree(node *tree);
614 static int validate_file_input(node *tree);
615 static int validate_encoding_decl(node *tree);
636 node *tree; in parser_tuple2st() local
651 tree = build_node_tree(tuple); in parser_tuple2st()
652 if (tree != 0) { in parser_tuple2st()
653 int start_sym = TYPE(tree); in parser_tuple2st()
656 if (validate_expr_tree(tree)) in parser_tuple2st()
657 st = parser_newstobject(tree, PyST_EXPR); in parser_tuple2st()
659 PyNode_Free(tree); in parser_tuple2st()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dparsermodule.c633 static int validate_expr_tree(node *tree);
634 static int validate_file_input(node *tree);
635 static int validate_encoding_decl(node *tree);
656 node *tree; in parser_tuple2st() local
671 tree = build_node_tree(tuple); in parser_tuple2st()
672 if (tree != 0) { in parser_tuple2st()
673 int start_sym = TYPE(tree); in parser_tuple2st()
676 if (validate_expr_tree(tree)) in parser_tuple2st()
677 st = parser_newstobject(tree, PyST_EXPR); in parser_tuple2st()
679 PyNode_Free(tree); in parser_tuple2st()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/
Dast.c144 AST *tree, in zzpre_ast() argument
149 zzpre_ast(tree, func, before, after) in zzpre_ast()
150 AST *tree; in zzpre_ast()
156 while ( tree!= NULL )
158 if ( tree->down != NULL ) (*before)(tree);
159 (*func)(tree);
160 zzpre_ast(tree->down, func, before, after);
161 if ( tree->down != NULL ) (*after)(tree);
162 tree = tree->right;
204 zzfree_ast(AST *tree) in zzfree_ast() argument
[all …]
DASTBase.cpp88 ASTBase *tree = this; in preorder() local
90 while ( tree!= NULL ) in preorder()
92 if ( tree->_down != NULL ) { in preorder()
93 tree->preorder_before_action(); // MR1 in preorder()
95 tree->preorder_action(); in preorder()
96 if ( tree->_down!=NULL ) in preorder()
98 tree->_down->preorder(); in preorder()
99 tree->preorder_after_action(); // MR1 in preorder()
101 tree = tree->_right; in preorder()
109 ASTBase* tree = this; in destroy() local
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/
Dast.c144 AST *tree, in zzpre_ast() argument
149 zzpre_ast(tree, func, before, after) in zzpre_ast()
150 AST *tree; in zzpre_ast()
156 while ( tree!= NULL )
158 if ( tree->down != NULL ) (*before)(tree);
159 (*func)(tree);
160 zzpre_ast(tree->down, func, before, after);
161 if ( tree->down != NULL ) (*after)(tree);
162 tree = tree->right;
204 zzfree_ast(AST *tree) in zzfree_ast() argument
[all …]
DASTBase.cpp88 ASTBase *tree = this; in preorder() local
90 while ( tree!= NULL ) in preorder()
92 if ( tree->_down != NULL ) { in preorder()
93 tree->preorder_before_action(pData); // MR1 in preorder()
95 tree->preorder_action(pData); in preorder()
96 if ( tree->_down!=NULL ) in preorder()
98 tree->_down->preorder(pData); in preorder()
99 tree->preorder_after_action(pData); // MR1 in preorder()
101 tree = tree->_right; in preorder()
109 ASTBase* tree = this; in destroy() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/parser/
Dexample.py33 def __init__(self, tree = None): argument
36 if tree:
37 self._extract_info(tree)
39 def _extract_info(self, tree): argument
41 if len(tree) == 2:
42 found, vars = match(DOCSTRING_STMT_PATTERN[1], tree[1])
44 found, vars = match(DOCSTRING_STMT_PATTERN, tree[3])
48 for node in tree[1:]:
89 def __init__(self, tree = None): argument
90 self._name = tree[2][1]
[all …]
Dunparse.py29 def __init__(self, tree, file = sys.stdout): argument
35 self.dispatch(tree)
56 def dispatch(self, tree): argument
58 if isinstance(tree, list):
59 for t in tree:
62 meth = getattr(self, "_"+tree.__class__.__name__)
63 meth(tree)
73 def _Module(self, tree): argument
74 for stmt in tree.body:
78 def _Expr(self, tree): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
Dnewslist.py120 def addtotree(tree, groups): argument
124 makeleaf(tree, parts)
127 def makeleaf(tree,path): argument
131 if j not in tree:
132 tree[j] = {}
134 tree[j]['.'] = '.'
136 makeleaf(tree[j],path[1:])
143 def createpage(root, tree, p): argument
157 printtree(f, tree, 0, p)
168 def printtree(f, tree, indent, p): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
Dtrees.c140 local void pqdownheap OF((deflate_state *s, ct_data *tree, int k));
142 local void gen_codes OF((ct_data *tree, int max_code, ushf *bl_count));
144 local void scan_tree OF((deflate_state *s, ct_data *tree, int max_code));
145 local void send_tree OF((deflate_state *s, ct_data *tree, int max_code));
163 # define send_code(s, c, tree) send_bits(s, tree[c].Code, tree[c].Len) argument
167 # define send_code(s, c, tree) \ argument
169 send_bits(s, tree[c].Code, tree[c].Len); }
432 #define pqremove(s, tree, top) \ argument
436 pqdownheap(s, tree, SMALLEST); \
443 #define smaller(tree, n, m, depth) \ argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
Dtrees.c144 local void pqdownheap OF((deflate_state *s, ct_data *tree, int k));
146 local void gen_codes OF((ct_data *tree, int max_code, ushf *bl_count));
148 local void scan_tree OF((deflate_state *s, ct_data *tree, int max_code));
149 local void send_tree OF((deflate_state *s, ct_data *tree, int max_code));
167 # define send_code(s, c, tree) send_bits(s, tree[c].Code, tree[c].Len) argument
171 # define send_code(s, c, tree) \ argument
173 send_bits(s, tree[c].Code, tree[c].Len); }
434 #define pqremove(s, tree, top) \ argument
438 pqdownheap(s, tree, SMALLEST); \
445 #define smaller(tree, n, m, depth) \ argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/
Dpytree_idempotency.py29 tree = dr.parse_file(fn, debug=True)
30 if not diff(fn, tree):
48 tree = dr.parse_file(fn, debug=True)
49 if diff(fn, tree):
65 tree = dr.parse_file(fn, debug=True)
69 if diff(fn, tree):
80 def diff(fn, tree): argument
83 f.write(str(tree))
Dtest_refactor.py152 tree = rt.refactor_string(input, "<test>")
153 self.assertNotEqual(str(tree), input)
156 tree = rt.refactor_string(input, "<test>")
157 self.assertEqual(str(tree), input)
222 tree = ["nothing",
229 check(tree, expected)
230 tree = ["hi.py",
232 check(tree, tree)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_parser.py265 def walk(tree): argument
266 node_type = tree[0]
267 next = tree[1]
269 for elt in tree[1:]:
273 yield tree
303 def check_bad_tree(self, tree, label): argument
305 parser.sequence2st(tree)
317 tree = \
368 self.check_bad_tree(tree, "def f():\n return 1\n yield 1")
372 tree = \
[all …]
Dtest_xml_etree.py72 tree = ET.ElementTree(elem)
73 tree.write(file, **options)
88 def normalize_crlf(tree): argument
89 for elem in tree.iter():
1643 tree = ET.TreeBuilder()
1644 tree.start("tag", {})
1645 tree.data("text")
1646 tree.end("tag")
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
Drefactor.py349 tree = self.refactor_string(input, filename)
350 if tree and tree.was_changed:
352 self.processed_file(unicode(tree)[:-1], filename,
372 tree = self.driver.parse_string(data)
379 tree.future_features = features
381 self.refactor_tree(tree, name)
382 return tree
394 tree = self.refactor_string(input, "<stdin>")
395 if tree and tree.was_changed:
396 self.processed_file(unicode(tree), "<stdin>", input)
[all …]
/device/linaro/bootloader/edk2/MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/
DBaseOrderedCollectionRedBlackTreeLib.uni2 // An OrderedCollectionLib instance that provides a red-black tree
4 // implementation, and allocates and releases tree nodes with
10 // tree. Complete ordered traversal takes O(n) time.
28 … #language en-US "An OrderedCollectionLib instance that provides a red-black tree implementation."
30 … #language en-US "An OrderedCollectionLib instance that provides a red-black tree implementation."
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/hotshot/
Dlog.py185 tree = stack.pop()
187 sym = tree[0]
191 self._funcmap[(fileno, tree[2][2])] = filename, tree[2][1]
193 self._funcmap[(fileno, tree[1][2])] = filename, "<lambda>"
194 stack.extend(list(tree[1:]))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/
Dvisitor.py59 def preorder(self, tree, visitor, *args): argument
63 self.dispatch(tree, *args) # XXX *args make sense?
101 def walk(tree, visitor, walker=None, verbose=None): argument
106 walker.preorder(tree, visitor)
Dsyntax.py14 def check(tree, multi=None): argument
16 walk(tree, v)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
Dfix_xrange.py20 def start_tree(self, tree, filename): argument
21 super(FixXrange, self).start_tree(tree, filename)
24 def finish_tree(self, tree, filename): argument
Dfix_import.py47 def start_tree(self, tree, name): argument
48 super(FixImport, self).start_tree(tree, name)
49 self.skip = "absolute_import" in tree.future_features
Dfix_next.py36 def start_tree(self, tree, filename): argument
37 super(FixNext, self).start_tree(tree, filename)
39 n = find_binding(u'next', tree)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/
Dsrcprep.bat3 REM the .h files from the PyMod tree into the Python tree.
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/versioncheck/
Dcheckversions.py33 def walk1tree(tree): argument
34 os.path.walk(tree, check1dir, None)

12345