mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Backport racc-1.4.15 from upstream.
This commit is contained in:
parent
cbe06cd350
commit
1a2546c2be
111 changed files with 75498 additions and 43 deletions
13
lib/racc/pre-setup
Normal file
13
lib/racc/pre-setup
Normal file
|
@ -0,0 +1,13 @@
|
|||
def generate_parser_text_rb(target)
|
||||
return if File.exist?(srcfile(target))
|
||||
$stderr.puts "generating #{target}..."
|
||||
File.open(target, 'w') {|f|
|
||||
f.puts "module Racc"
|
||||
f.puts " PARSER_TEXT = <<'__end_of_file__'"
|
||||
f.puts File.read(srcfile('parser.rb'))
|
||||
f.puts "__end_of_file__"
|
||||
f.puts "end"
|
||||
}
|
||||
end
|
||||
|
||||
generate_parser_text_rb 'parser-text.rb'
|
Loading…
Add table
Add a link
Reference in a new issue