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