doc: c++: promote api.token.raw

* doc/bison.texi (Calc++ Parser): Here.
This commit is contained in:
Akim Demaille
2020-03-21 08:29:13 +01:00
parent 6e89bc0fd2
commit ef88dfba81

View File

@@ -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