Rename |PEG.compiler.compileParser| to |PEG.compiler.compile|

It's shorter and more consistent with |PEG.parser.parse|.
redux
David Majda 14 years ago
parent 5e64d09a15
commit 95a78892de

@ -18,7 +18,7 @@
* parser and cause its malfunction.
*/
PEG.buildParser = function(grammar) {
return PEG.compiler.compileParser(PEG.parser.parse(grammar));
return PEG.compiler.compile(PEG.parser.parse(grammar));
};
/* ===== PEG.GrammarError ===== */
@ -136,7 +136,7 @@ PEG.compiler = {
* during the generation and some may protrude to the generated parser and
* cause its malfunction.
*/
compileParser: function(ast) {
compile: function(ast) {
for (var i = 0; i < this.checks.length; i++) {
this.checks[i](ast);
}

Loading…
Cancel
Save