Sha256: b11df61da680ed99ab659fede24527bf63424ffeb4161c5e435a1741bc6a4ef6
Contents?: true
Size: 381 Bytes
Versions: 1
Compression:
Stored size: 381 Bytes
Contents
module Treetop metagrammar_parser = Protometagrammar.new.new_parser File.open(File.expand_path('metagrammar.treetop', File.dirname(__FILE__)), 'r') do |file| metagrammar_text = file.read result = metagrammar_parser.parse(metagrammar_text) unless result.success? raise 'unable to parse metagrammar' end Metagrammar = result.value end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
treetop-0.1.0 | lib/treetop/metagrammar/metagrammar.rb |