public ExpressionCalculator(ISyntaxProcessor syntaxProcessor,
                             ISemanticsProcessor semanticsProcessor,
                             ICalculationModelConverter converter)
 {
     _syntaxProcessor    = syntaxProcessor;
     _semanticsProcessor = semanticsProcessor;
     _converter          = converter;
 }
Esempio n. 2
0
        public TextEditorControl()
        {
            // TODO: Determine Syntax from file extension/contents
            this.syntaxProcessor = new SQLSyntaxProcessor();

            var style = new Style(typeof(Paragraph));
            style.Setters.Add(new Setter(Block.MarginProperty, new Thickness(0)));
            this.Resources.Add(typeof(Paragraph), style);
        }