AjTalk.Hosting.Host.Execute C# (CSharp) Method

Execute() public method

public Execute ( string command ) : void
command string
return void
        public void Execute(string command)
        {
            Machine current = Machine.Current;
            Loader loader = new Loader(new StringReader(command), new SimpleCompiler());

            try
            {
                this.machine.SetCurrent();
                loader.LoadAndExecute(this.machine);
            }
            finally
            {
                Machine.SetCurrent(current);
            }
        }