示例#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();
 }