示例#1
0
文件: cli.cs 项目: master/plil
        public static void Main()
        {
            String[] args = Environment.GetCommandLineArgs();
            CmdIo source = new CmdIo();
            try {
                source = new CmdIo(args);
                Tok tokenizer = new Tok(source);
                Lib funclibrary = new Lib();

                Parser parser = new Parser(source, tokenizer, funclibrary);
                parser.parse_and_compile();
                source.Finish();
            } catch {
                source.Message("plil: compiler error.");
            }
        }
示例#2
0
文件: cli.cs 项目: stjordanis/plil
        public static void Main()
        {
            String[] args   = Environment.GetCommandLineArgs();
            CmdIo    source = new CmdIo();

            try {
                source = new CmdIo(args);
                Tok tokenizer   = new Tok(source);
                Lib funclibrary = new Lib();

                Parser parser = new Parser(source, tokenizer, funclibrary);
                parser.parse_and_compile();
                source.Finish();
            } catch {
                source.Message("plil: compiler error.");
            }
        }