myna.js
function quantified(rule, min, max) {
        if (min === void 0) { min = 0; }
        if (max === void 0) { max = Infinity; }
        if (min === 0 && max === 1)
            return new Optional(RuleTypeToRule(rule));
        else
            return new Quantified(RuleTypeToRule(rule), min, max);
    }
function quantified(rule, min, max) {
        if (min === void 0) { min = 0; }
        if (max === void 0) { max = Infinity; }
        if (min === 0 && max === 1)
            return new Optional(RuleTypeToRule(rule));
        else
            return new Quantified(RuleTypeToRule(rule), min, max);
    }
function quantified ( rule , min , max ) { if ( min === void 0 ) { min = 0 ; } if ( max === void 0 ) { max = Infinity ; } if ( min === 0 && max === 1 ) return new Optional ( RuleTypeToRule ( rule ) ) ; else return new Quantified ( RuleTypeToRule ( rule ) , min , max ) ; }
Attempts to apply a rule between min and max number of times inclusive. If the maximum is set to Infinity, it will attempt to match as many times as it can, but throw an exception if the parser does not advance
Attempts to apply a rule between min and max number of times inclusive . If the maximum is set to Infinity it will attempt to match as many times as it can but throw an exception if the parser does not advance