Exemple #1
0
        static void Main(string[] args)
        {
            var     s  = new StreamReader(args[0]);
            MyLex   yy = new MyLex(s);
            MyToken t;

            while ((t = yy.Lex()) != null)
            {
                Console.WriteLine(t);
            }
        }
Exemple #2
0
 public Actions(MyLex lex)
 {
     this.lex = lex;
     actionInit();
 }