From 95a78892ded47613e4be90972ebf28da9c4dbf84 Mon Sep 17 00:00:00 2001 From: David Majda Date: Sun, 25 Jul 2010 15:45:56 +0200 Subject: [PATCH] Rename |PEG.compiler.compileParser| to |PEG.compiler.compile| It's shorter and more consistent with |PEG.parser.parse|. --- lib/compiler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }