public void parse(CSsemi.CSemiExp semi) { // Note: rule returns true to tell parser to stop // processing the current semiExp Display.displaySemiString(semi.displayStr()); foreach (IRule rule in Rules) { if (rule.test(semi)) break; } }