Exemplo n.º 1
0
        static Camlex()
        {
            // factories setup
            var operandBuilder = new OperandBuilder();
            var operationResultBuilder = new OperationResultBuilder();
            var analyzerFactory = new AnalyzerFactory(operandBuilder, operationResultBuilder);
            translatorFactory = new TranslatorFactory(analyzerFactory);

            // re
            var reoperandBuilder = new ReOperandBuilderFromCaml();
            var reanalyzerFactory = new ReAnalyzerFromCamlFactory(reoperandBuilder);
            retranslatorFactory = new ReTranslatorFromCamlFactory(reanalyzerFactory);
            relinkerFactory = new ReLinkerFromCamlFactory();
        }