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);
        }