Regenerate lib/parser.js

redux
David Majda 8 years ago
parent a3397c31f9
commit e546af5543

@ -121,11 +121,18 @@
descriptions.length = j; descriptions.length = j;
} }
return descriptions.length > 1 switch (descriptions.length) {
? descriptions.slice(0, -1).join(", ") case 1:
+ " or " return descriptions[0];
+ descriptions[descriptions.length - 1]
: descriptions[0]; case 2:
return descriptions[0] + " or " + descriptions[1];
default:
return descriptions.slice(0, -1).join(", ")
+ ", or "
+ descriptions[descriptions.length - 1];
}
} }
function describeFound(found) { function describeFound(found) {
@ -138,9 +145,7 @@
function peg$parse(input, options) { function peg$parse(input, options) {
options = options !== void 0 ? options : {}; options = options !== void 0 ? options : {};
var parser = this, var peg$FAILED = {},
peg$FAILED = {},
peg$startRuleFunctions = { Grammar: peg$parseGrammar }, peg$startRuleFunctions = { Grammar: peg$parseGrammar },
peg$startRuleFunction = peg$parseGrammar, peg$startRuleFunction = peg$parseGrammar,

Loading…
Cancel
Save