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:
Akim Demaille
2020-12-31 08:20:23 +01:00
parent 3911aba39a
commit 83f2eb3737
3 changed files with 3 additions and 2 deletions

View File

@@ -18,6 +18,7 @@
/* Simplified C++ Type and Expression Grammar.
Written by Paul Hilfinger for Bison's test suite. */
%require "3.8"
%glr-parser
%skeleton "glr2.cc"
%define parse.assert

View File

@@ -237,7 +237,7 @@ typedef enum yysymbol_kind_t yysymbol_kind_t;
/* Pretend to be at least that version, to check features published
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 location current_lhs_loc;

View File

@@ -59,7 +59,7 @@
/* Pretend to be at least that version, to check features published
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 location current_lhs_loc;