diff --git a/lib/compiler.js b/lib/compiler.js index 2e4a595..5fd2f10 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -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); }