mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
glr.c: obey the parse.assert %define variable
* data/skeletons/glr.c (YYASSERT): Rename as... (YY_ASSERT): this, for consistency with yacc.c, and also to emphasize the fact that this is not for the end user (YY_ prefix). * tests/glr-regression.at: Define parse.assert.
This commit is contained in:
@@ -6494,9 +6494,12 @@ Obsoleted by @code{api.namespace}
|
||||
@deffn Directive {%define parse.assert}
|
||||
|
||||
@itemize
|
||||
@item Languages(s): C++
|
||||
@item Languages(s): C, C++
|
||||
|
||||
@item Purpose: Issue runtime assertions to catch invalid uses.
|
||||
In C, some important invariants in the implementation of the parser are
|
||||
checked when this option is enabled.
|
||||
|
||||
In C++, when variants are used (@pxref{C++ Variants}), symbols must be
|
||||
constructed and destroyed properly. This option checks these constraints.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user