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