Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 public TokenEnumerator(Tokens token)
 {
     this.token = token;
 }