Lines Matching refs:labels
94 # iterate through the tree and extract nodes with pattern labels
95 wizard.visit(deep_node, '(MULT %n:NUMBER %v:.)') do |node, parent, local_index, labels|
96 printf "n = %p\n, v = %p\n", labels['n'], labels['v']
410 visit( tree, pattern.type ) do | tree, parent, child_index, labels |
411 labels = match!( tree, pattern ) and
412 yield( tree, parent, child_index, labels )
422 def match!( tree, pattern, labels = {} )
429 labels[ pattern.label ] = tree if labels && pattern.label
438 return( false ) unless match!( actual_child, pattern_child, labels )
441 return labels