File tree Expand file tree Collapse file tree 4 files changed +9
-11
lines changed Expand file tree Collapse file tree 4 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ source 'https://rubygems.org'
33gemspec
44
55gem 'rake'
6- gem 'racc' , '> 1.4.10 '
6+ gem 'racc' , '1.8.1 '
77gem 'kpeg' , '>= 1.3.3'
88gem 'test-unit'
99gem 'test-unit-ruby-core'
Original file line number Diff line number Diff line change @@ -67,18 +67,16 @@ parsed_files = PARSER_FILES.map do |parser_file|
6767 puts "Generating #{ parsed_file } ..."
6868 case ext
6969 when '.ry' # need racc
70- racc = Gem . bin_path 'racc' , 'racc'
7170 rb_file = parser_file . gsub ( /\. ry\z / , ".rb" )
72- ruby " #{ racc } -l -E -o #{ rb_file } #{ parser_file } "
71+ sh "bundle exec racc -l -E -o #{ rb_file } #{ parser_file } "
7372 File . open ( rb_file , 'r+' ) do |f |
7473 newtext = "# frozen_string_literal: true\n #{ f . read } "
7574 f . rewind
7675 f . write newtext
7776 end
7877 when '.kpeg' # need kpeg
79- kpeg = Gem . bin_path 'kpeg' , 'kpeg'
8078 rb_file = parser_file . gsub ( /\. kpeg\z / , ".rb" )
81- ruby " #{ kpeg } -fsv -o #{ rb_file } #{ parser_file } "
79+ sh "bundle exec kpeg -fsv -o #{ rb_file } #{ parser_file } "
8280 File . write ( rb_file , File . read ( rb_file ) . gsub ( / +$/ , '' ) ) # remove trailing spaces
8381 end
8482 end
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22#
33# DO NOT MODIFY!!!!
4- # This file is automatically generated by Racc 1.8.0
4+ # This file is automatically generated by Racc 1.8.1
55# from Racc grammar file "block_parser.ry".
66#
77
2323$". push "#{ __dir__ } /racc/info.rb"
2424
2525module Racc
26- VERSION = '1.8.0 '
26+ VERSION = '1.8.1 '
2727 Version = VERSION
2828 Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
2929end
@@ -38,7 +38,7 @@ class ParseError < StandardError; end
3838 ParseError = Racc ::ParseError # :nodoc:
3939end
4040
41- # Racc is a LALR(1) parser generator.
41+ # Racc is an LALR(1) parser generator.
4242# It is written in Ruby itself, and generates Ruby programs.
4343#
4444# == Command-line Reference
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22#
33# DO NOT MODIFY!!!!
4- # This file is automatically generated by Racc 1.8.0
4+ # This file is automatically generated by Racc 1.8.1
55# from Racc grammar file "inline_parser.ry".
66#
77
2323$". push "#{ __dir__ } /racc/info.rb"
2424
2525module Racc
26- VERSION = '1.8.0 '
26+ VERSION = '1.8.1 '
2727 Version = VERSION
2828 Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
2929end
@@ -38,7 +38,7 @@ class ParseError < StandardError; end
3838 ParseError = Racc ::ParseError # :nodoc:
3939end
4040
41- # Racc is a LALR(1) parser generator.
41+ # Racc is an LALR(1) parser generator.
4242# It is written in Ruby itself, and generates Ruby programs.
4343#
4444# == Command-line Reference
You can’t perform that action at this time.
0 commit comments