Summary description for Context.
コード例 #1
0
ファイル: AbstractStep.cs プロジェクト: atczyc/castle
		public virtual void Process(Context context, EngineConfiguration configuration)
		{
			if (Next != null)
			{
				Next.Process(context, configuration);
			}
		}
コード例 #2
0
ファイル: ParserTestCaseBase.cs プロジェクト: atczyc/castle
		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
ファイル: AbstractStep.cs プロジェクト: atczyc/castle
		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
ファイル: AbstractVisitorStep.cs プロジェクト: atczyc/castle
			public new void Init(Context context)
			{
				base.Init(context);
			}
コード例 #7
0
ファイル: AbstractVisitorStep.cs プロジェクト: atczyc/castle
		public virtual void Process(Context context, EngineConfiguration configuration)
		{
			_step.Process(context, configuration);
		}
コード例 #8
0
ファイル: AbstractVisitorStep.cs プロジェクト: atczyc/castle
		protected void Init(Context context)
		{
			_step.Init(context);
		}