summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAdela Vais <adela.vais@yahoo.com>2020-11-17 16:44:52 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-11-18 08:14:43 +0100
commit593724366f714e6c0316c51716cc507309ea9030 (patch)
treefcac72e034806bd4b853a879897456c28dd3185b /doc
parent0e51f6146ad32126b9fce26fb8de34c3d2f727e6 (diff)
downloadbison-593724366f714e6c0316c51716cc507309ea9030.tar.gz
d: add support for lookahead correction
When using lookahead correction, the method YYParser.Context.getExpectedTokens is not annotated with const, because the method calls yylacCheck, which is not const. Also, because of yylacStack and yylacEstablished, yylacCheck needs to be called from the context of the parser class, which is sent as parameter to the Context's constructor. * data/skeletons/lalr1.d (yylacCheck, yylacEstablish, yylacDiscard, yylacStack, yylacEstablished): New. (Context): Use it. * doc/bison.texi: Document it. * tests/calc.at: Check it.
Diffstat (limited to 'doc')
-rw-r--r--doc/bison.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/bison.texi b/doc/bison.texi
index afa14caa..3ad56fdf 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -6885,7 +6885,7 @@ introduced in 3.0 with support for @code{simple} and @code{verbose}. Values
@deffn Directive {%define parse.lac} @var{when}
@itemize
-@item Languages(s): C/C++ (deterministic parsers only), and Java.
+@item Languages(s): C/C++ (deterministic parsers only), D and Java.
@item Purpose: Enable LAC (lookahead correction) to improve
syntax error handling. @xref{LAC}.