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