Exemplo n.º 1
0
 public Literal(string pattern, string flags, object value, string raw)
 {
     Type = Nodes.Literal;
     // value is null if a Regex object couldn't be created out of the pattern or options
     Value     = value;
     Regex     = new RegexValue(pattern, flags);
     TokenType = TokenType.RegularExpression;
     Raw       = raw;
 }
Exemplo n.º 2
0
 public Literal(string pattern, string flags, object value, string raw) :
     this(TokenType.RegularExpression, value, raw)
 {
     // value is null if a Regex object couldn't be created out of the pattern or options
     Regex = new RegexValue(pattern, flags);
 }