Ejemplo n.º 1
0
 /// <summary> Recognizes a the exponent part of a scientific number notation.
 /// It can be e12, E-1, jfun.yan.etc.
 /// </summary>
 /// <returns> the Pattern object.
 /// </returns>
 public static Pattern IsExponential()
 {
     return(Patterns.Sequence(Among(new char[] { 'e', 'E' }), IsChar('-').Optional(), IsInteger()));
 }