doc: fix spello

* doc/bison.texi (Multiple start-symbols): here.
This commit is contained in:
Akim Demaille
2021-08-03 12:22:15 +02:00
parent 952479fca7
commit b293d4fbca

View File

@@ -15418,15 +15418,14 @@ invited to consult the dedicated literature.
@quotation @quotation
I have several closely related grammars, and I would like to share their I have several closely related grammars, and I would like to share their
implementations. In fact, I could use a single grammar but with implementations. In fact, I could use a single grammar but with multiple
multiple entry points. entry points.
@end quotation @end quotation
Bison does not support multiple start-symbols, but there is a very Bison does not support multiple start-symbols, but there is a very simple
simple means to simulate them. If @code{foo} and @code{bar} are the two means to simulate them. If @code{foo} and @code{bar} are the two pseudo
pseudo start-symbols, then introduce two new tokens, say start-symbols, then introduce two new tokens, say @code{START_FOO} and
@code{START_FOO} and @code{START_BAR}, and use them as switches from the @code{START_BAR}, and use them as switches from the real start-symbol:
real start-symbol:
@example @example
%token START_FOO START_BAR; %token START_FOO START_BAR;
@@ -15436,7 +15435,7 @@ start:
| START_BAR bar; | START_BAR bar;
@end example @end example
These tokens prevents the introduction of new conflicts. As far as the These tokens prevent the introduction of new conflicts. As far as the
parser goes, that is all that is needed. parser goes, that is all that is needed.
Now the difficult part is ensuring that the scanner will send these tokens Now the difficult part is ensuring that the scanner will send these tokens