Summary description for Context.
Beispiel #1
0
		public virtual void Process(Context context, EngineConfiguration configuration)
		{
			if (Next != null)
			{
				Next.Process(context, configuration);
			}
		}
Beispiel #2
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;
		}
		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);
		}
Beispiel #4
0
		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;
		}
Beispiel #6
0
			public new void Init(Context context)
			{
				base.Init(context);
			}
Beispiel #7
0
		public virtual void Process(Context context, EngineConfiguration configuration)
		{
			_step.Process(context, configuration);
		}
Beispiel #8
0
		protected void Init(Context context)
		{
			_step.Init(context);
		}