Axiom.Runtime.AbstractMachineState.Transition C# (CSharp) Method

Transition() public method

public Transition ( ) : void
return void
        public void Transition()
        {
            while (!Stop())
            {
                AbstractInstruction next = _program.CurrentInstruction();
                AMHeap heap = (AMHeap)_dataArea;

                next.Execute(this);
            }
        }

Usage Example

Ejemplo n.º 1
0
        public InteractiveCompiler(string filename)
        {
            PrologCodeProvider provider = new PrologCodeProvider();
            IPrologCompiler compiler = provider.CreateCompiler();
            PrologCompilerParameters parameters = new PrologCompilerParameters();
            PrologCompilerResults results = compiler.CompileAbstractCodeFromFile(parameters, "boot.pro");

            /* Run */
            AbstractMachineState runtime = new AbstractMachineState(new AMFactory());
            //runtime.Init(results.AbstractInstructions, results.ForeignMethods, results.Namespaces, results.AssemblyFiles);
            runtime.Initialize(results.AbstractInstructions);

            runtime.Transition();
        }
All Usage Examples Of Axiom.Runtime.AbstractMachineState::Transition