Exemple #1
0
 public static bool IsLiteral(string value)
 {
     return(Recognition.IsStringLiteral(value) ||
            Recognition.IsInteger(value) ||
            Recognition.IsStringLiteral(value));
 }
Exemple #2
0
 public static bool IsLiteral(Token token)
 {
     return(Recognition.IsLiteral(token.Value));
 }
Exemple #3
0
 public static bool IsCharLiteral(string value)
 {
     return(Recognition.DoesMatch(Pattern.Character, value));
 }
Exemple #4
0
 public static bool IsCharLiteral(Token token)
 {
     return(Recognition.DoesMatch(Pattern.Character, token));
 }
Exemple #5
0
 public static bool IsNumeric(Token token)
 {
     return(Recognition.IsNumeric(token.Value));
 }
Exemple #6
0
 public static bool IsStringLiteral(string value)
 {
     return(Recognition.DoesMatch(Pattern.String, value));
 }
Exemple #7
0
 public static bool IsNumeric(string value)
 {
     return(Recognition.IsInteger(value) || Recognition.IsDecimal(value));
 }
Exemple #8
0
 public static bool IsDecimal(string value)
 {
     return(Recognition.DoesMatch(Pattern.Decimal, value));
 }
Exemple #9
0
 public static bool IsInteger(Token token)
 {
     return(Recognition.IsInteger(token.Value));
 }
Exemple #10
0
 public static bool IsInteger(string value)
 {
     return(Recognition.DoesMatch(Pattern.Integer, value));
 }
Exemple #11
0
 public static bool DoesMatch(Regex regex, Token token)
 {
     return(Recognition.DoesMatch(regex, token.Value));
 }