예제 #1
0
파일: Program.cs 프로젝트: maxild/CsLex
        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);
            }
        }
예제 #2
0
파일: Program.cs 프로젝트: maxild/CsLex
 public Actions(MyLex lex)
 {
     this.lex = lex;
     actionInit();
 }