public ParameterItemParser(System.Collections.Generic.IEnumerable <Model.StrategyParameter> parameters) { var allNames = new Regex("^(" + string.Join("|", parameters.Select(p => p.Id)) + ")$"); _main = new WordChainParser() .ExpectWord(allNames, "name"); }
public DefaultStreamItemParser() { _main = new WordChainParser() .ExpectWord(new Regex("^(open|high|low|close)$"), "name"); }
public NumberItemParser() { _main = new WordChainParser() .ExpectDouble("number"); }