Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void AddLiteralHandler(TryHandleLiteral handler)
 {
     literalHandlers.Add(handler);
 }