Beispiel #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Testing Tokens by breaking the string into tokens:");

            Tokens token = new Tokens("This is a well-done program.", new char[] { ' ', '-' });

            foreach (string item in token)
            {
                Console.WriteLine(item);
            }

            Console.Read();
        }
Beispiel #2
0
 public TokenEnumerator(Tokens token)
 {
     this.token = token;
 }