private NvdlInterpretation CreateInterp(NvdlDispatcher d, SimpleMode m, SimpleAction a, NvdlInterpretation p) { SimpleValidate v = a as SimpleValidate; if (v != null) { return(new NvdlValidateInterp(d, m, v, p)); } return(new NvdlResultInterp(d, m, (SimpleResultAction)a, p)); }
private NvdlInterpretation CreateInterp(NvdlDispatcher d, SimpleMode m, SimpleAction a, NvdlInterpretation p) { NvdlDebug.Writer.WriteLine("***** new interp from action {0} from mode {1}", a.Location, m.Location); SimpleValidate v = a as SimpleValidate; if (v != null) { return(new NvdlValidateInterp(d, m, v, p)); } return(new NvdlResultInterp(d, m, (SimpleResultAction)a, p)); }
private SimpleMode FindContextMode(SimpleAction a, NvdlSection parentState) { if (a.Contexts != null) { foreach (SimpleContext ctx in a.Contexts) { foreach (SimplePath path in ctx.Path) { if (MatchPath(path, parentState)) { return(ctx.UseMode); } } } } return(a.DefaultMode); }
private SimpleMode FindContextMode(SimpleAction a, NvdlSection parentState) { if (a.Contexts != null) { foreach (SimpleContext ctx in a.Contexts) { foreach (SimplePath path in ctx.Path) { if (MatchPath(path, parentState)) { NvdlDebug.Writer.WriteLine("------ matched context at {0}.", ctx.Location); return(ctx.UseMode); } } } } return(a.DefaultMode); }
private NvdlInterpretation GetInterp( SimpleAction a, NvdlDispatcher d) { return(CreateInterp(d, d.Rules.StartMode, a, null)); }
public NvdlInterpretation (NvdlDispatcher dispatcher, SimpleMode createdMode, SimpleAction action, NvdlInterpretation parent) { this.dispatcher = dispatcher; this.createdMode = createdMode; this.action = action; this.parent = parent; }
private SimpleMode FindContextMode (SimpleAction a, NvdlSection parentState) { if (a.Contexts != null) foreach (SimpleContext ctx in a.Contexts) foreach (SimplePath path in ctx.Path) if (MatchPath (path, parentState)) { NvdlDebug.Writer.WriteLine ("------ matched context at {0}.", ctx.Location); return ctx.UseMode; } return a.DefaultMode; }
private NvdlInterpretation CreateInterp (NvdlDispatcher d, SimpleMode m, SimpleAction a, NvdlInterpretation p) { NvdlDebug.Writer.WriteLine ("***** new interp from action {0} from mode {1}", a.Location, m.Location); SimpleValidate v = a as SimpleValidate; if (v != null) return new NvdlValidateInterp (d, m, v, p); return new NvdlResultInterp (d, m, (SimpleResultAction) a, p); }
private NvdlInterpretation GetInterp ( SimpleAction a, NvdlDispatcher d) { return CreateInterp (d, d.Rules.StartMode, a, null); }