From 1d2ed4ca22394ecc31cee874d8bfa97a67ded5c9 Mon Sep 17 00:00:00 2001 From: Noah Doersing Date: Fri, 12 Oct 2018 11:11:16 +0200 Subject: [PATCH 1/2] Fix typo --- website/views/documentation.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/views/documentation.ejs b/website/views/documentation.ejs index 538c84b..10b0d50 100644 --- a/website/views/documentation.ejs +++ b/website/views/documentation.ejs @@ -167,7 +167,7 @@ supported:

null).
format
-
format of the genreated parser ("amd", "bare", +
format of the generated parser ("amd", "bare", "commonjs", "globals", or "umd"); valid only when output is set to "source" (default: "bare").
From d29704ff9c1e7d0c18f0462e99bcfcb9fccdf1f5 Mon Sep 17 00:00:00 2001 From: Pascal Brandt Date: Sun, 28 Oct 2018 14:39:12 -0700 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=8D=F0=9F=8F=BC=20Fix=20small=20typo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/grammar/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/grammar/README.md b/docs/grammar/README.md index 7cce60f..0106440 100644 --- a/docs/grammar/README.md +++ b/docs/grammar/README.md @@ -67,6 +67,6 @@ If an expression successfully matches a part of the text when running the genera The match results propagate through the rules when the rule names are used in expressions, up to the start rule. The generated parser returns start rule's match result when parsing is successful. -One special case of parser expression is a *parser action* - a piece of JavaScript code inside curly braces (“{” and “}”) that takes match results of some of the the preceding expressions and returns a JavaScript value. This value is considered a match result of the preceding expression (in other words, the parser action is a match result transformer). +One special case of parser expression is a *parser action* - a piece of JavaScript code inside curly braces (“{” and “}”) that takes match results of some of the preceding expressions and returns a JavaScript value. This value is considered a match result of the preceding expression (in other words, the parser action is a match result transformer). In our arithmetic's example, there are many parser actions. Consider the action in expression `digits:[0-9]+ { return parseInt(digits.join(""), 10); }`. It takes the match result of the expression [0-9]+, which is an array of strings containing digits, as its parameter. It joins the digits together to form a number and converts it to a JavaScript `number` object.