bootstrap_gen_1_metagrammar.rb

Path: lib/treetop/bootstrap_gen_1_metagrammar.rb
Last Update: Wed Jan 05 18:24:00 +0000 2011

This file‘s job is to load a Treetop::Compiler::Metagrammar and Treetop::Compiler::MetagrammarParser into the environment by compiling the current metagrammar.treetop using a trusted version of Treetop.

Required files

rubygems  

Constants

TREETOP_VERSION_REQUIRED_TO_BOOTSTRAP = '>= 1.1.5'
Trusted = Module.new   Relocating trusted version of Treetop to Trusted::Treetop
Treetop = Treetop
METAGRAMMAR_PATH = File.expand_path('../compiler/metagrammar.treetop', __FILE__)   Compile and evaluate freshly generated metagrammar source

[Validate]