diff --git a/Makefile b/Makefile index fd225e4..a1e2480 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ browser: echo ' * Licensed under the MIT license.' >> $(BROWSER_FILE_DEV) echo ' */' >> $(BROWSER_FILE_DEV) - $(BROWSERIFY) --standalone PEG $(MAIN_FILE) >> $(BROWSER_FILE_DEV) + $(BROWSERIFY) --standalone peg $(MAIN_FILE) >> $(BROWSER_FILE_DEV) $(UGLIFYJS) \ --mangle \ diff --git a/README.md b/README.md index 676cac9..07163ce 100644 --- a/README.md +++ b/README.md @@ -87,25 +87,25 @@ 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.buildParser` * `--extra-options-file` — file with additional options (in JSON format) to - pass to `PEG.buildParser` + pass to `peg.buildParser` * `--trace` — makes the parser trace its progress ### JavaScript API In Node.js, require the PEG.js parser generator module: - var PEG = require("pegjs"); + var peg = require("pegjs"); In browser, include the PEG.js library in your web page or application using the `