Autogenerated from a Treetop grammar. Edits may be lost.
compile a treetop source file and load it
# File lib/treetop/compiler/grammar_compiler.rb, line 35 def self.load(path) adjusted_path = path =~ /\.(treetop|tt)\Z/ ? path : path + '.treetop' File.open(adjusted_path) do |source_file| source = source_file.read source.gsub!(/\b__FILE__\b/, %{"#{adjusted_path}"}) load_from_string(source) end end
Generated with the Darkfish Rdoc Generator 2.