From f4504a93fe38eb7f283d5a37a3520bc39b9c3a5a Mon Sep 17 00:00:00 2001 From: David Majda Date: Wed, 4 May 2016 14:01:14 +0200 Subject: [PATCH] Rename the "buildParser" function to "generate" In most places, we talk about "generating a parser", not "building a parser", which the function name should reflect. Also, mentioning a parser in the name is not necessary as in case of a parser generator it's pretty clear what is generated. --- README.md | 12 +- benchmark/runner.js | 2 +- bin/pegjs | 6 +- lib/peg.js | 2 +- spec/api/generated-parser-api.spec.js | 10 +- spec/api/pegjs-api.spec.js | 36 +-- spec/api/plugin-api.spec.js | 18 +- .../generated-parser-behavior.spec.js | 236 +++++++++--------- 8 files changed, 161 insertions(+), 161 deletions(-) diff --git a/README.md b/README.md index 07163ce..44c0117 100644 --- a/README.md +++ b/README.md @@ -87,9 +87,9 @@ You can tweak the generated parser with several options: * `--plugin` — makes PEG.js use a specified plugin (can be specified multiple times) * `--extra-options` — additional options (in JSON format) to pass to - `peg.buildParser` + `peg.generate` * `--extra-options-file` — file with additional options (in JSON format) to - pass to `peg.buildParser` + pass to `peg.generate` * `--trace` — makes the parser trace its progress ### JavaScript API @@ -102,10 +102,10 @@ In browser, include the PEG.js library in your web page or application using the `