public virtual void Process(Context context, EngineConfiguration configuration) { if (Next != null) { Next.Process(context, configuration); } }
protected EngineConfiguration ProcessContent(string content) { EngineConfiguration conf = CreateParser( content ).Parse(); StepChainBuilder chain = new StepChainBuilder(); AddSteps(chain); _context = new Context(); _context.Error += new ErrorDelegate(OnError); chain.Build().Process(_context, conf); return conf; }
protected virtual void ExecuteSteps() { StepChainBuilder chain = new StepChainBuilder(); AddSemanticStep(chain); AddTypeResolverStep(chain); AddPruneTypesStep(chain); IStep firstStep = chain.Build(); Context context = new Context(); context.Error += new ErrorDelegate(OnError); firstStep.Process(context, Configuration); }
protected virtual void Init(Context context) { _context = context; }
protected SemanticAnalizerStep Analize(EngineConfiguration conf, IStep next) { SemanticAnalizerStep analizer = new SemanticAnalizerStep(); analizer.Next = next; _context = new Context(); _context.Error += new ErrorDelegate(OnError); analizer.Process(_context, conf); return analizer; }
public new void Init(Context context) { base.Init(context); }
public virtual void Process(Context context, EngineConfiguration configuration) { _step.Process(context, configuration); }
protected void Init(Context context) { _step.Init(context); }