ruby-changes:61007
From: Nobuyoshi <ko1@a...>
Date: Mon, 4 May 2020 18:12:36 +0900 (JST)
Subject: [ruby-changes:61007] 5c2508060b (master): Bison 3.5.91 now defaults parse.error to "simple"
https://git.ruby-lang.org/ruby.git/commit/?id=5c2508060b From 5c2508060b79b4299a18d05511d3530ad14b1b7a 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 09ba462..9f6bda3 100644 --- a/parse.y +++ b/parse.y @@ -1014,6 +1014,7 @@ static int looking_at_eol_p(struct parser_params *p); https://github.com/ruby/ruby/blob/trunk/parse.y#L1014 %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 e4aedfa..d07df68 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/