Sha256: 1412c6f7f8041ae236ed34df8b6efa84ef08790ccdaa7d6f4ca473b2992b71f1
Contents?: true
Size: 470 Bytes
Versions: 3
Compression:
Stored size: 470 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require File.expand_path('../../lib/treetop/bootstrap_gen_1_metagrammar', __FILE__) GENERATED_METAGRAMMAR_PATH = File.expand_path('../../lib/treetop/compiler/metagrammar.rb') File.open(METAGRAMMAR_PATH) do |source_file| File.open(GENERATED_METAGRAMMAR_PATH, 'w') do |target_file| generated_source = Treetop::Compiler::MetagrammarParser.new.parse(source_file.read).compile target_file.write(generated_source) end end
Version data entries
3 entries across 3 versions & 1 rubygems