public virtual ParseTreeMatch Match(IParseTree tree, ParseTreePattern pattern) { MultiMap<string, IParseTree> labels = new MultiMap<string, IParseTree>(); IParseTree mismatchedNode = MatchImpl(tree, pattern.PatternTree, labels); return new ParseTreeMatch(tree, pattern, labels, mismatchedNode); }
public virtual ParseTreeMatch Match(IParseTree tree) { return(matcher.Match(tree, this)); }