From 264a38a31eb5d1197a8a0e7370686f087fb3e566 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 17 Mar 2019 09:43:52 -0700 Subject: Improve documentation of parsing strategy. Note that `openers_bottom` needs to be indexed to delimiter run lengths as well as types. Closes #563. --- spec.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec.txt b/spec.txt index 2f01257..f3921c6 100644 --- a/spec.txt +++ b/spec.txt @@ -9481,7 +9481,8 @@ just above `stack_bottom` (or the first element if `stack_bottom` is NULL). We keep track of the `openers_bottom` for each delimiter -type (`*`, `_`). Initialize this to `stack_bottom`. +type (`*`, `_`) and delimiter length (modulo 3). Initialize +this to `stack_bottom`. Then we repeat the following until we run out of potential closers: -- cgit v1.2.3