Exemple #1
0
        static void Main(string[] args)
        {
            Tokenizer tokenizer = new Tokenizer();
            TextViewer viewer = new TextViewer(tokenizer);
            string str = Console.ReadLine();
            viewer.Explore(str);

            tokenizer.List();
            Console.ReadKey();
        }
Exemple #2
0
 public TextViewer(Tokenizer tokenizer)
 {
     WordHandled += tokenizer.AddWord;
     NumberHandled += tokenizer.AddNumber;
 }