Esempio n. 1
0
 protected void Compile(string wc, string wcClass, string specials, REFlags flags)
 {
     string converted = ConvertSpecials(wc, wcClass, specials);
     try {
         Compile(converted,flags);
     } catch(PatternSyntaxException e) {
         throw new System.Exception(e.Message+"; original expr: "+wc+", converted: "+converted);
     }
     str=wc;
 }
Esempio n. 2
0
 public Pattern(string regex, REFlags flags)
 {
     Compile(regex,flags);
 }
Esempio n. 3
0
 public WildcardPattern(string wc, string wcClass, REFlags flags)
 {
     Compile(wc, wcClass, defaultSpecials, flags);
 }
Esempio n. 4
0
 protected void Compile(string regex, REFlags flags)
 {
     stringRepr=regex;
     Term.MakeTree(regex,flags,this);
 }