예제 #1
0
파일: Main.cs 프로젝트: marcusanth/YAMP
        public static void Main(String[] args)
        {
            if (args.Length > 0)
            {
                switch (args[0])
                {
                case "-h":
                case "--help":
                    HelpPrinter.Run();
                    return;

                case "-b":
                case "--benchmark":
                    Benchmarks.Run();
                    return;

                default:
                    Console.WriteLine("Argument not found!");
                    Environment.Exit(-1);
                    return;
                }
            }

            Repl.Run();
        }
예제 #2
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Command Line Test Tool of YAMP");
            Console.WriteLine();
            Console.WriteLine("--------------------------");
            Console.WriteLine();
            Console.WriteLine(" YAMP VERSION " + YAMP.Parser.Version);
            Console.WriteLine();
            Console.WriteLine("--------------------------");
            Console.WriteLine();

            LoadCore();
            LoadPhysics();
#if DEBUG
            YAMPTests.Run();
#elif BENCHMARKS
            Benchmarks.Run();
#elif CONSOLE
            YAMPConsole.Run();
#endif
        }