예제 #1
0
 private void Instance(string element, Stack <IExpression> stack)
 {
     foreach (var keyValuePair in MappingLexemes.GetMappingRegExExpression())
     {
         if (Regex.IsMatch(element, keyValuePair.Key, RegexOptions.IgnoreCase))
         {
             var elementTemp = keyValuePair.Value.Clone;
             elementTemp.PopExpressionInStarck(element, stack);
             stack.Push(elementTemp);
             break;
         }
     }
 }
예제 #2
0
 public IDictionary <string, IExpression> GetMappingRegExExpression()
 {
     return(MappingLexemes.GetMappingRegExExpression());
 }