public
Fork of nathansobo/treetop
Description: A Ruby-based parsing DSL based on parsing expression grammars.
Homepage: http://treetop.rubyforge.org
Clone URL: git://github.com/juretta/treetop.git
Search Repo:
Petteri Räty (author)
Thu Mar 13 07:46:17 -0700 2008
Nathan Sobo (committer)
Thu Mar 13 21:31:39 -0700 2008
commit  28f98a7c3c4bccfc3f0de0db7930240698aec8ba
tree    fac482c5693e82454788b35c3da83c2864527944
parent  be4848611026d224ce106ff3249214f957dcb63c
treetop / lib / treetop.rb
100644 12 lines (8 sloc) 0.295 kb
1
2
3
4
5
6
7
8
9
10
11
12
require 'rubygems'
 
dir = File.dirname(__FILE__)
 
TREETOP_ROOT = File.join(dir, 'treetop')
require File.join(TREETOP_ROOT, "ruby_extensions")
require File.join(TREETOP_ROOT, "runtime")
require File.join(TREETOP_ROOT, "compiler")
 
require 'polyglot'
Polyglot.register(["treetop", "tt"], Treetop)