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