mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
diagnostics: %pure-parser is obsolete
Reported by Uxio Prego. http://lists.gnu.org/archive/html/bug-bison/2018-12/msg00029.html * src/scan-gram.l, src/parse-gram.y (PERCENT_PURE_PARSER) (handle_pure_parser): New. Issue a deprecation/update notice for %pure-parser. * doc/bison.texi (Java Bison Interface): Don't mention %pure-parser. * tests/actions.at, tests/input.at: Adjust.
This commit is contained in:
@@ -12416,8 +12416,8 @@ You can create documentation for generated parsers using Javadoc.
|
||||
|
||||
Contrary to C parsers, Java parsers do not use global variables; the state
|
||||
of the parser is always local to an instance of the parser class.
|
||||
Therefore, all Java parsers are ``pure'', and the @code{%pure-parser} and
|
||||
@code{%define api.pure} directives do nothing when used in Java.
|
||||
Therefore, all Java parsers are ``pure'', and the @code{%define api.pure}
|
||||
directive does nothing when used in Java.
|
||||
|
||||
Push parsers are currently unsupported in Java and @code{%define
|
||||
api.push-pull} have no effect.
|
||||
|
||||
Reference in New Issue
Block a user