/// <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 == '_'); }
public bool Execute(char current) { return(!(Ctype.IsLetter(current) || Ctype.IsDigit(current) || current == '_')); }