internal SampleDebugAdapter(Stream stdIn, Stream stdOut) { this.directiveProcessor = new DirectiveProcessor(this); // Register core directives this.RegisterDirective <DelayArgs>("Delay", this.DoDelay); this.RegisterDirective <SetPropertyArgs>("SetProperty", this.DoSetProperty); this.RegisterDirective <StdOutArgs>("StdOut", this.DoStdOut); this.RegisterDirective <PromptArgs>("Prompt", this.DoPrompt); this.RegisterDirective <ExitBreakArgs>("ExitBreak", this.DoExitBreak); this.RegisterDirective <GotoArgs>("Goto", this.DoGoto); this.ModuleManager = new ModuleManager(this); this.ThreadManager = new ThreadManager(this); this.ExceptionManager = new ExceptionManager(this); this.BreakpointManager = new BreakpointManager(this); this.ScriptManager = new SampleSourceManager(this); this.ShowGlobals = true; this.GlobalsScope = this.CreateGlobalsScope(); this.runEvent = new ManualResetEvent(true); this.stopReason = null; base.InitializeProtocolClient(stdIn, stdOut); }
public override object Execute(Reasoner reasoner, Unifier un, ITerm[] args) { CheckArguments(args); Agent ag = reasoner.GetAgent(); Pred inc = new Pred(ns, "include"); inc.AddTerms(args); //-Cosas Java??? //-Sí Peterrr, cÓsas Naz* ¡digo! cÓsas Java Agent result = ((Include)DirectiveProcessor.GetDirective("include")).Process(inc, ag, null); ag.ImportComponents(result); ag.AddInitialBelsInBB(); ag.AddInitialDesiresInReasoner(); if (args.Length > 1 && args[1].IsVar()) { return(un.Unifies(args[1], inc.GetTerm(1))); } else { return(true); } }
public void Execute(RippleInput input, IRippleStepRunner runner) { DirectiveProcessor.ProcessDirectives(Solution); }