From 45de51a8818459196cdedae6ec5d4ec5a73e21ba Mon Sep 17 00:00:00 2001 From: David Majda Date: Wed, 4 May 2016 14:08:43 +0200 Subject: [PATCH] Consistently talk about generating (not building) a parser --- README.md | 4 ++-- spec/api/pegjs-api.spec.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 44c0117..360704f 100644 --- a/README.md +++ b/README.md @@ -140,8 +140,8 @@ Using the Parser Using the generated parser is simple — just call its `parse` method and pass an input string as a parameter. The method will return a parse result (the exact -value depends on the grammar used to build the parser) or throw an exception if -the input is invalid. The exception will contain `location`, `expected` and +value depends on the grammar used to generate the parser) or throw an exception +if the input is invalid. The exception will contain `location`, `expected` and `message` properties with more details about the error. parser.parse("abba"); // returns ["a", "b", "b", "a"] diff --git a/spec/api/pegjs-api.spec.js b/spec/api/pegjs-api.spec.js index 3241470..caf82d2 100644 --- a/spec/api/pegjs-api.spec.js +++ b/spec/api/pegjs-api.spec.js @@ -4,7 +4,7 @@ describe("PEG.js API", function() { describe("generate", function() { - it("builds a parser", function() { + it("generates a parser", function() { var parser = peg.generate('start = "a"'); expect(typeof parser).toBe("object");