From ef88dfba812b9179341d5fb7dd21e1adfa30fc0a Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 21 Mar 2020 08:29:13 +0100 Subject: [PATCH] doc: c++: promote api.token.raw * doc/bison.texi (Calc++ Parser): Here. --- doc/bison.texi | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/doc/bison.texi b/doc/bison.texi index 7cf45189..2edf942b 100644 --- a/doc/bison.texi +++ b/doc/bison.texi @@ -12105,13 +12105,24 @@ designed the grammar for. %defines @end example +@noindent +@findex %define api.token.raw +Because our scanner returns only genuine tokens and never simple characters +(i.e., it returns @samp{PLUS}, not @samp{'+'}), we can avoid conversions. + +@comment file: calc++/parser.yy +@example +%define api.token.raw +@end example + @noindent @findex %define api.token.constructor @findex %define api.value.type variant -This example will use genuine C++ objects as semantic values, therefore, we -require the variant-based interface. To make sure we properly use it, we -enable assertions. To fully benefit from type-safety and more natural -definition of ``symbol'', we enable @code{api.token.constructor}. +This example uses genuine C++ objects as semantic values, therefore, we +require the variant-based storage of semantic values. To make sure we +properly use it, we enable assertions. To fully benefit from type-safety +and more natural definition of ``symbol'', we enable +@code{api.token.constructor}. @comment file: calc++/parser.yy @example