From: NeilBrown Date: Sun, 4 May 2014 10:41:50 +0000 (+1000) Subject: parsergen: fix a couple of typos in text. X-Git-Tag: linebreakparser X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=commitdiff_plain;h=refs%2Ftags%2Flinebreakparser parsergen: fix a couple of typos in text. Signed-off-by: NeilBrown --- diff --git a/csrc/parsergen.mdc b/csrc/parsergen.mdc index 6a6a316..1bb813e 100644 --- a/csrc/parsergen.mdc +++ b/csrc/parsergen.mdc @@ -891,7 +891,7 @@ compute it in a repetitive manner similar to `set_nullable`. ### Building the `first` sets When calculating what can follow a particular non-terminal, we will need to -know what the "first" terminal in an subsequent non-terminal might be. So +know what the "first" terminal in any subsequent non-terminal might be. So we calculate the `first` set for every non-terminal and store them in an array. We don't bother recording the "first" set for terminals as they are trivial. @@ -2370,7 +2370,7 @@ that we shift when we can, and reduce when we cannot. So the `shift` function reports if it could. So `shift` finds the next state. If that succeed it extends the allocations -if needed and pushed all the information onto the stacks. +if needed and pushes all the information onto the stacks. ###### parser functions