Skip to content

Commit

Permalink
Embedded racc parser for potability
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jun 8, 2023
1 parent 4b68c07 commit 0e060c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ parsed_files = PARSER_FILES.map do |parser_file|
when '.ry' # need racc
racc = Gem.bin_path 'racc', 'racc'
rb_file = parser_file.gsub(/\.ry\z/, ".rb")
ruby "#{racc} -l -o #{rb_file} #{parser_file}"
ruby "#{racc} -l -E -o #{rb_file} #{parser_file}"
open(rb_file, 'r+') do |f|
newtext = "# frozen_string_literal: true\n#{f.read}"
f.rewind
Expand Down

0 comments on commit 0e060c6

Please sign in to comment.