From ad07ebb60c5e771f4c00f2dae948c5148272a3e7 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Sun, 4 May 2014 20:41:50 +1000 Subject: [PATCH] parsergen: fix a couple of typos in text. Signed-off-by: NeilBrown --- csrc/parsergen.mdc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.0