Beispiel #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;
        }
Beispiel #2
0
 internal RepeatReduceParser(Parser <T> original, RepeatConfiguration repConf,
                             ReduceConfiguration <T, U, V> aggConf)
     : this("RepeatReduce", original, repConf, aggConf)
 {
 }