Rakefile in ruby_parser-3.7.3 vs Rakefile in ruby_parser-3.8.0

- old
+ new

@@ -29,33 +29,41 @@ self.perforce_ignore << "lib/ruby20_parser.y" self.perforce_ignore << "lib/ruby21_parser.rb" self.perforce_ignore << "lib/ruby21_parser.y" self.perforce_ignore << "lib/ruby22_parser.rb" self.perforce_ignore << "lib/ruby22_parser.y" + self.perforce_ignore << "lib/ruby23_parser.rb" + self.perforce_ignore << "lib/ruby23_parser.y" self.perforce_ignore << "lib/ruby_lexer.rex.rb" end self.racc_flags << " -t" if plugin?(:racc) && ENV["DEBUG"] end file "lib/ruby20_parser.y" => "lib/ruby_parser.yy" do |t| - sh "unifdef -tk -DRUBY20 -URUBY21 -URUBY22 -UDEAD #{t.source} > #{t.name} || true" + sh "unifdef -tk -DRUBY20 -URUBY21 -URUBY22 -URUBY23 -UDEAD #{t.source} > #{t.name} || true" end file "lib/ruby21_parser.y" => "lib/ruby_parser.yy" do |t| - sh "unifdef -tk -URUBY20 -DRUBY21 -URUBY22 -UDEAD #{t.source} > #{t.name} || true" + sh "unifdef -tk -URUBY20 -DRUBY21 -URUBY22 -URUBY23 -UDEAD #{t.source} > #{t.name} || true" end file "lib/ruby22_parser.y" => "lib/ruby_parser.yy" do |t| - sh "unifdef -tk -URUBY20 -URUBY21 -DRUBY22 -UDEAD #{t.source} > #{t.name} || true" + sh "unifdef -tk -URUBY20 -URUBY21 -DRUBY22 -URUBY23 -UDEAD #{t.source} > #{t.name} || true" end +file "lib/ruby23_parser.y" => "lib/ruby_parser.yy" do |t| + sh "unifdef -tk -URUBY20 -URUBY21 -URUBY22 -DRUBY23 -UDEAD #{t.source} > #{t.name} || true" +end + + file "lib/ruby18_parser.rb" => "lib/ruby18_parser.y" file "lib/ruby19_parser.rb" => "lib/ruby19_parser.y" file "lib/ruby20_parser.rb" => "lib/ruby20_parser.y" file "lib/ruby21_parser.rb" => "lib/ruby21_parser.y" file "lib/ruby22_parser.rb" => "lib/ruby22_parser.y" +file "lib/ruby23_parser.rb" => "lib/ruby23_parser.y" file "lib/ruby_lexer.rex.rb" => "lib/ruby_lexer.rex" task :clean do rm_rf(Dir["**/*~"] + Dir["diff.diff"] + # not all diffs. bit me too many times @@ -127,9 +135,11 @@ Ruby20Parser.new when "21" then Ruby21Parser.new when "22" then Ruby22Parser.new + when "23" then + Ruby23Parser.new else raise "Unsupported version #{ENV["V"]}" end time = (ENV["RP_TIMEOUT"] || 10).to_i