Esempio n. 1
0
File: cli.cs Progetto: 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.");
            }
        }
Esempio n. 2
0
        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.");
            }
        }