Execute() public method

public Execute ( ) : void
return void
Ejemplo n.º 1
0
        /* Main entry point */
        /* Calls all the other stuff and process the command line */
        public static void Main(string [] args)
        {
            VM vm = new VM();

            vm.shrink = 0;

            for (int i = 0; i < args.Length; i++)
            {
                if (args[i] == "--shrink")
                {
                    vm.shrink = 1;
                }
                if (args[i] == "--about")
                {
                    Console.Write("Retro Language  [VM: C#, .NET]\n\n");
                    Environment.Exit(0);
                }
                if (args[i] == "--with")
                {
                    i++;
                    vm.isp++;
                    vm.inputs[vm.isp]  = System.IO.File.ReadAllBytes(args[i]);
                    vm.lengths[vm.isp] = vm.inputs[vm.isp].Length;
                }
            }
            vm.Execute();
        }
Ejemplo n.º 2
0
        /* Main entry point */
        /* Calls all the other stuff and process the command line */
        public static void Main(string [] args)
        {
            VM vm = new VM();
              vm.shrink = 0;

              for (int i = 0; i < args.Length; i++) {
            if (args[i] == "--shrink")
              vm.shrink = 1;
            if (args[i] == "--about") {
              Console.Write("Retro Language  [VM: C#, .NET]\n\n");
              Environment.Exit(0);
            }
            if (args[i] == "--with") {
              i++;
              vm.isp++;
              vm.inputs[vm.isp] = System.IO.File.ReadAllText(args[i]);
              vm.lengths[vm.isp] = vm.inputs[vm.isp].Length;
            }
              }
              vm.Execute();
        }