Exemplo n.º 1
0
        public static ExpressionEvalConfig BuildDefaultConfig()
        {
            // build and set operators
            ExprOperatorBuilder operatorsBuilder = new ExprOperatorBuilder();

            ExpressionEvalConfig exprEvalConfig = new ExpressionEvalConfig();

            exprEvalConfig.SetLang(Language.En);
            exprEvalConfig.SetDecimalAndFunctionSeparators(DecimalAndFunctionSeparators.Standard);
            operatorsBuilder.BuildOperators(exprEvalConfig);
            return(exprEvalConfig);
        }
Exemplo n.º 2
0
        public static void BuildDefaultConfig(ExprScanner scanner)
        {
            // configure
            ExpressionEvalConfig exprEvalConfig = new ExpressionEvalConfig();

            exprEvalConfig.SetLang(Language.En);
            exprEvalConfig.SetStringTagCode(StringTagCode.DoubleQuote);

            ExprOperatorBuilder operatorsBuilder = new ExprOperatorBuilder();

            operatorsBuilder.BuildOperators(exprEvalConfig);

            //ExpressionEvalConfig evalConfig = new ExpressionEvalConfig();
            //scanner.SetListSpecial2CharOperators(exprEvalConfig.ListSpecial2CharOperators);
            scanner.SetConfiguration(exprEvalConfig);
        }