From 1602e9f06acc9bb016181261eb94cca981a25844 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 2 Nov 2018 14:33:12 +0100 Subject: [PATCH] docs: Add missing `)` to test code --- docs/section-3-creating-parsers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/section-3-creating-parsers.md b/docs/section-3-creating-parsers.md index bbd4ab72..f332060c 100644 --- a/docs/section-3-creating-parsers.md +++ b/docs/section-3-creating-parsers.md @@ -189,7 +189,7 @@ func x() int { (parameter_list) (primitive_type) (block - (return_statement (number)))) + (return_statement (number))))) ``` The name of the test is written between two lines containing only `=` characters. Then the source code is written, followed by a line containing three or more `-` characters. Then, the expected syntax tree is written as an [S-expression][s-exp]. The exact placement of whitespace in the S-expression doesn't matter, but ideally the syntax tree should be legible. Note that the S-expression does not show syntax nodes like `func`, `(` and `;`, which are expressed as strings and regexes in the grammar. It only shows the *named* nodes, as described in [the previous page](/using-parsers#named-vs-anonymous-nodes).