Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
 public DefaultStreamItemParser()
 {
     _main = new WordChainParser()
             .ExpectWord(new Regex("^(open|high|low|close)$"), "name");
 }
 public NumberItemParser()
 {
     _main = new WordChainParser()
             .ExpectDouble("number");
 }