Summary description for StepChainBuilder.
Esempio n. 1
0
		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;
		}
Esempio n. 2
0
		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 override void AddSteps(StepChainBuilder chain)
		{
			chain.AddStep(new SemanticAnalizerStep());
			chain.AddStep(new ResolveTypesStep());
			chain.AddStep(new PruneTypesStep());
		}
Esempio n. 4
0
		protected virtual void AddPruneTypesStep(StepChainBuilder chain)
		{
			chain.AddStep(new PruneTypesStep());
		}
Esempio n. 5
0
		protected virtual void AddTypeResolverStep(StepChainBuilder chain)
		{
			chain.AddStep(new ResolveTypesStep());
		}
Esempio n. 6
0
		protected virtual void AddSemanticStep(StepChainBuilder chain)
		{
			chain.AddStep(new SemanticAnalizerStep());
		}
Esempio n. 7
0
		protected virtual void AddSteps(StepChainBuilder chain)
		{
		}