public ExpressionParser(AliasMapper aliasMap, IDecimalConverter converter, CommodityIndex commodityIndex) { helper = new ExpressionValidationHelper(aliasMap, commodityIndex); expressions = RomanToDecimalFactory.GetExpressions(aliasMap, converter, commodityIndex, helper); }
public static List <IExpression> GetExpressions(AliasMapper aliasMap, IDecimalConverter converter, CommodityIndex commodityIndex, ExpressionValidationHelper helper) { List <IExpression> expressions = new List <IExpression>(); expressions.Add(new AliasExpression(aliasMap)); expressions.Add(new UnitExpression(commodityIndex, aliasMap, converter, helper)); expressions.Add(new AliasQuestionExpression(aliasMap, converter, helper)); expressions.Add(new UnitQuestionExpression(commodityIndex, aliasMap, converter, helper)); expressions.Add(new CommodityConversionExpression(commodityIndex, aliasMap, converter, helper)); return(expressions); }