Ejemplo n.º 1
0
        /// <summary>
        /// Match is a static method that determines whether
        /// or not the token starting at
        /// <paramref name="begin">begin</paramref>
        /// is an C# identifier.
        /// </summary>
        /// <param name="begin">begin</param>
        /// <param name="end">end</param>

        internal static bool Match(Position begin, Position end)
        {
            if (begin == end)
            {
                return(false);
            }
            char read = begin.Get();

            return(Ctype.IsLetter(read) || read == '_');
        }
Ejemplo n.º 2
0
 public bool Execute(char current)
 {
     return(!(Ctype.IsLetter(current) ||
              Ctype.IsDigit(current) ||
              current == '_'));
 }