ruby-changes:62167
From: Nobuyoshi <ko1@a...>
Date: Fri, 10 Jul 2020 08:52:37 +0900 (JST)
Subject: [ruby-changes:62167] 1ee1684a4a (ruby_2_7): Bison 3.5.91 now defaults parse.error to "simple"
https://git.ruby-lang.org/ruby.git/commit/?id=1ee1684a4a From 1ee1684a4a3edb26b5aa32acc967b9ef26284d42 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 4 May 2020 18:10:02 +0900 Subject: Bison 3.5.91 now defaults parse.error to "simple" diff --git a/parse.y b/parse.y index dc9c375..e57cc11 100644 --- a/parse.y +++ b/parse.y @@ -968,6 +968,7 @@ static int looking_at_eol_p(struct parser_params *p); https://github.com/ruby/ruby/blob/trunk/parse.y#L968 %expect 0 %define api.pure +%define parse.error verbose %lex-param {struct parser_params *p} %parse-param {struct parser_params *p} %initial-action diff --git a/tool/pure_parser.rb b/tool/pure_parser.rb index 9ab6638..59e8fb7 100755 --- a/tool/pure_parser.rb +++ b/tool/pure_parser.rb @@ -18,3 +18,4 @@ BEGIN { https://github.com/ruby/ruby/blob/trunk/tool/pure_parser.rb#L18 ARGV.push(file) } $_.sub!(/^%define\s+api\.pure/, '%pure-parser') +$_.sub!(/^%define\s+.*/, '') -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/