Exemplo n.º 1
0
        internal RepeatReduceParser(
            string name, Parser <T> original, RepeatConfiguration repConf,
            ReduceConfiguration <T, U, V> aggConf) : base(name)
        {
            _repConf  = repConf ?? throw new ArgumentNullException(nameof(repConf));
            _aggConf  = aggConf ?? throw new ArgumentNullException(nameof(aggConf));
            _original = original ?? throw new ArgumentNullException(nameof(original));

            _repMin       = _repConf.Minimal;
            _repMax       = _repConf.Maximum;
            _repBreakable = _repConf.Breakable;
            _repSep       = _repConf.Separator;
            _aggNoSeed    = _aggConf.SeedFactory == null;
        }
Exemplo n.º 2
0
 internal RepeatReduceParser(Parser <T> original, RepeatConfiguration repConf,
                             ReduceConfiguration <T, U, V> aggConf)
     : this("RepeatReduce", original, repConf, aggConf)
 {
 }
Exemplo n.º 3
0
 internal SeqParser(Parser <T> original, RepeatConfiguration repConf)
     : base("Seq", original, repConf, aggConf)
 {
 }