Ejemplo n.º 1
0
        static void Promt()
        {
            while (Work)
            {
                Console.Write(">");
                var cmd = Console.ReadLine();

                Parser.Run(cmd);
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

            Parser = Parser.Create(args);

            // For test
            //Parser.Run("test begin");

            if (args.Length == 0)
            {
                // promt commands
                //Parser.Run("promt");

                // or help here
                Parser.Run("/?");
            }

            //Console.ReadKey();
        }