mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
glr2.cc: the example requires Bison 3.8
This will save us from generating the position.hh file. * src/parse-gram.y: Claim we are 3.8. * examples/c++/glr/c++-types.yy: Require 3.8.
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
/* Simplified C++ Type and Expression Grammar.
|
/* Simplified C++ Type and Expression Grammar.
|
||||||
Written by Paul Hilfinger for Bison's test suite. */
|
Written by Paul Hilfinger for Bison's test suite. */
|
||||||
|
|
||||||
|
%require "3.8"
|
||||||
%glr-parser
|
%glr-parser
|
||||||
%skeleton "glr2.cc"
|
%skeleton "glr2.cc"
|
||||||
%define parse.assert
|
%define parse.assert
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ typedef enum yysymbol_kind_t yysymbol_kind_t;
|
|||||||
|
|
||||||
/* Pretend to be at least that version, to check features published
|
/* Pretend to be at least that version, to check features published
|
||||||
in that version while developping it. */
|
in that version while developping it. */
|
||||||
static const char* api_version = "3.7";
|
static const char* api_version = "3.8";
|
||||||
|
|
||||||
static int current_prec = 0;
|
static int current_prec = 0;
|
||||||
static location current_lhs_loc;
|
static location current_lhs_loc;
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
/* Pretend to be at least that version, to check features published
|
/* Pretend to be at least that version, to check features published
|
||||||
in that version while developping it. */
|
in that version while developping it. */
|
||||||
static const char* api_version = "3.7";
|
static const char* api_version = "3.8";
|
||||||
|
|
||||||
static int current_prec = 0;
|
static int current_prec = 0;
|
||||||
static location current_lhs_loc;
|
static location current_lhs_loc;
|
||||||
|
|||||||
Reference in New Issue
Block a user