示例#1
0
 private PTokenRepeat(IMatchable content, bool greedyMatch, int repeatLowerBound, int repeatUpperBound,
                      MatchCompleteChecker matchCompleteChecker = null)
 {
     _content              = content;
     _repeatLowerBound     = repeatLowerBound;
     RepeatUpperBound      = repeatUpperBound;
     _greedyMatch          = greedyMatch;
     _matchCompleteChecker = matchCompleteChecker;
 }
示例#2
0
        public CTokenRepeat(IMatchable content, bool greedyMatch, int repeatLowerBound, int repeatUpperBound,
                            MatchCompleteChecker matchCompleteChecker = null)
        {
            this.content          = content;
            this.repeatLowerBound = repeatLowerBound;
            this.repeatUpperBound = repeatUpperBound;

            this.greedyMatch          = greedyMatch;
            this.matchCompleteChecker = matchCompleteChecker;
        }
示例#3
0
 public CTokenRepeat(IMatchable content, bool greedyMatch,
                     int repeatLowerBound = 0, MatchCompleteChecker matchCompleteChecker = null)
     : this(content, greedyMatch, repeatLowerBound, 0, matchCompleteChecker)
 {
     this.infiniteRepeat = true;
 }