public virtual bool TryLiteralHandlers(string text, out Word result) { bool found = false; for (int i = 0; i < literalHandlers.Count; i++) { TryHandleLiteral handler = literalHandlers[i]; found = handler(text, out result); if (found) { return(true); } } result = null; return(false); }
public void AddLiteralHandler(TryHandleLiteral handler) { literalHandlers.Add(handler); }