Lines Matching full:labels
69 - (void) visit:(ANTLRCommonTree *)t Parent:(ANTLRCommonTree *)parent ChildIndex:(NSInteger)childIndex Map:(ANTLRMap *)labels
73 [(ANTLRMap *)object2 /* labels */ clear];
74 if ( [(ANTLRTreeWizard *)actor _parse:t Pattern:object1/* tpattern */ Map:object2 /* labels */] ) {
75 [self visit:t Parent:parent ChildIndex:childIndex Map:object2 /* labels */];
384 public void visit(Object t, Object parent, int childIndex, Map labels) {
407 * version of the general visit(t, pattern) method. The labels arg
455 ANTLRMapElement *labels = [ANTLRMap newANTLRMap]; // reused for each _parse
462 labels.clear();
463 if ( _parse(t, tpattern, labels) ) {
464 visitor.visit(t, parent, childIndex, labels);
469 ANTLRVisitor *contextVisitor = [ANTLRVisitor newANTLRVisitor:0 Actor:self Object:tpattern Object:labels];
473 /** Given a pattern like (ASSIGN %lhs:ID %rhs:.) with optional labels
475 * return true if the pattern matches and fill the labels Map with
476 * the labels pointing at the appropriate nodes. Return false if
484 - (BOOL)parse:(ANTLRCommonTree *)t Pattern:(NSString *)pattern Map:(ANTLRMap *)labels
495 boolean matched = _parse(t, tpattern, labels);
507 //BOOL matched = [self _parse:t Pattern:tpattern Map:labels];
509 return [self _parse:t Pattern:tpattern Map:labels];
519 * text arguments on nodes. Fill labels map with pointers to nodes
520 * in tree matched against nodes in pattern with labels.
522 - (BOOL) _parse:(ANTLRCommonTree *)t1 Pattern:(ANTLRCommonTree *)aTPattern Map:(ANTLRMap *)labels
541 if ( tpattern.label != nil && labels!=nil ) {
543 [labels putName:tpattern.label Node:t1];
554 if ( ![self _parse:child1 Pattern:child2 Map:labels] ) {