mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-25 12:13:03 +00:00
glr2.cc: add support for parse.assert
* data/skeletons/glr2.cc: Fake support of parse.assert, so that the tests can use it without failing.
This commit is contained in:
4
TODO
4
TODO
@@ -198,6 +198,10 @@ yycharp is no longer a Pointer. And yystackp should probably also be a referenc
|
|||||||
Don't use YYSTYPE and YYLTYPE but parser::semantic_type and
|
Don't use YYSTYPE and YYLTYPE but parser::semantic_type and
|
||||||
parser::location_type. Undefine YYSTYPE and YYLTYPE.
|
parser::location_type. Undefine YYSTYPE and YYLTYPE.
|
||||||
|
|
||||||
|
*** parse.assert
|
||||||
|
Currently all the assertions are enabled. Once we are confident in glr2.cc,
|
||||||
|
let parse.assert use the same approach as in lalr1.cc.
|
||||||
|
|
||||||
*** glr.c
|
*** glr.c
|
||||||
When glr2.cc fully replaces glr.cc, get rid of the glr.cc scaffolding in
|
When glr2.cc fully replaces glr.cc, get rid of the glr.cc scaffolding in
|
||||||
glr.c.
|
glr.c.
|
||||||
|
|||||||
@@ -456,7 +456,6 @@ static YYLTYPE yyloc_default][]b4_yyloc_default;])[
|
|||||||
[#include <cstdio>
|
[#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
|
|
||||||
#ifndef YY_
|
#ifndef YY_
|
||||||
# if defined YYENABLE_NLS && YYENABLE_NLS
|
# if defined YYENABLE_NLS && YYENABLE_NLS
|
||||||
# if ENABLE_NLS
|
# if ENABLE_NLS
|
||||||
@@ -504,6 +503,8 @@ static YYLTYPE yyloc_default][]b4_yyloc_default;])[
|
|||||||
]b4_null_define[
|
]b4_null_define[
|
||||||
]b4_cast_define[
|
]b4_cast_define[
|
||||||
|
|
||||||
|
// FIXME: Use the same conventions as lalr1.cc.
|
||||||
|
]b4_parse_assert_if[
|
||||||
#ifndef YYASSERT
|
#ifndef YYASSERT
|
||||||
# define YYASSERT(Condition) ((void) ((Condition) || (abort (), 0)))
|
# define YYASSERT(Condition) ((void) ((Condition) || (abort (), 0)))
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user