<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,129 +19,3 @@ If a grammar by the name of `Foo` is defined, the compiled Ruby source will defi
     else
       puts 'failure'
     end
-
-##Defining Grammars Directly in Ruby
-It is possible to define parser directly in Ruby source file.
-
-###Grammars
-Defining parsers in Ruby code is as much similar to original definition as it is possible. To create a grammar just write:
-
-    include Treetop::Syntax
-    grammar :Foo do
-    end
-    parser = FooParser.new
-
-Treetop will automatically compile and load it into memory, thus an instance of `FooParser` can be created.
-
-###Syntactic Recognition
-To create a rule inside of a grammar simply write:
-
-    include Treetop::Syntax
-    grammar :Foo do
-      rule :bar do
-        ...
-      end
-    end
-
-Inside the rule any of Treetop syntactic elements can be used. Each element of a rule is created with standard Ruby classes: Strings act as Terminals, Symbols stand for Nonterminals, Arrays are sequences, Regexps are character classes.
-
-_Note: it is better not to use Numbers, as terminal symbols; use Strings instead._
-
-Sequences can be defined as follows:
-
-    rule :sequence do
-      [ &quot;foo&quot;, &quot;bar&quot;, &quot;baz&quot; ]
-    end
-
-Ordered choices use `/` operator:
-
-    rule :choice do
-      &quot;foo&quot; / &quot;bar&quot;
-    end
-
-Sequences have higher precedence than choices, so choices must be parenthesized to be used as the elements of a sequence. For example:
-
-    rule :nested do
-      [&quot;foo&quot;, &quot;bar&quot;, &quot;baz&quot; / &quot;bop&quot; ]    # -&gt; &quot;foo&quot; &quot;bar&quot; ( &quot;baz&quot; / &quot;bop&quot; )
-    end
-
-Special operators like `!`, `&amp;`, `?`, `+` and `*` are available through methods (all of the methods return element itself so calls can be chained) of elements in a rule:
-
-    Op. | Method
-    -----------
-     !  | bang
-     &amp;  | amper
-     ?  | mark
-     +  | plus
-     *  | kleene
-
-For example grammar:
-
-    grammar :Foo do
-      rule :bar do
-       [ &quot;baz&quot; / &quot;bop&quot; ].kleene
-      end
-    end
-
-can generate any word that contain words &quot;bar&quot; and &quot;bop&quot;.
-
-###Semantic Interpretation
-
-Syntax node declaration can be added by `node` method (which may be called the same as operators above):
-
-    grammar :Parens do
-      rule :parenthesized_letter do
-        ([ '(', :parenthesized_letter, ')'] / /[a-z]/ ).node(:ParenNode)
-      end
-    end
-    
-It is also possible to add inline blocks of code. They are in fact strings strictly inserted into generated grammar:
-
-    grammar :Parens do
-      rule :parenthesized_letter do
-        (['(', :parenthesized_letter, ')'] / /[a-z]/ ).block(%{
-          def depth
-            if nonterminal?
-              parenthesized_letter.depth + 1
-            else
-              0
-            end
-          end
-        })
-      end
-    end
-
-Labels in rule definitions can be written as follow (example taken from documentation):
-
-  rule :labels do
-    [/[a-z]/.label(:first_letter), [', ', /[a-z]/.kleene.label(:letter)].label(:rest_letters)].block(%{
-      ...
-    })
-  end
-
-###Composition
-
-Inclusion of a grammar works thanks to `include` function call inside the grammar definition:
-
-    grammar :One do
-      rule :a do
-        foo&quot;
-      end
-    
-      rule :b do        
-        &quot;baz&quot;
-      end      
-    end
-
-    grammar :Two do
-      include :One
-      rule :a do      
-        :super / &quot;bar&quot; / :c
-      end
-      
-      rule :c do
-       :b      
-      end
-    end
-
-Grammar Two can generate `&quot;foo&quot;`, `&quot;bar&quot;` and `&quot;baz&quot;` words.</diff>
      <filename>doc/using_in_ruby.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,6 @@ TREETOP_ROOT = File.join(dir, 'treetop')
 require File.join(TREETOP_ROOT, &quot;ruby_extensions&quot;)
 require File.join(TREETOP_ROOT, &quot;runtime&quot;)
 require File.join(TREETOP_ROOT, &quot;compiler&quot;)
-require File.join(TREETOP_ROOT, &quot;syntax&quot;)
 
 require 'polyglot'
 Polyglot.register(Treetop::VALID_GRAMMAR_EXT, Treetop)</diff>
      <filename>lib/treetop.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,2 @@
 dir = File.dirname(__FILE__)
-Dir.glob(&quot;#{dir}/ruby_extensions/*.rb&quot;).each do |file|
-	require file
-end
+require &quot;#{dir}/ruby_extensions/string&quot;
\ No newline at end of file</diff>
      <filename>lib/treetop/ruby_extensions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@ class String
       index + 1
     end
   end
-
+  
   def line_of(index)
     self[0...index].count(&quot;\n&quot;) + 1
   end
@@ -36,33 +36,7 @@ class String
     end
   end
 
-	def indent_paragraph(n)
-		out = &quot;&quot;
-		self.each_line {|line| out += line.indent(n) }
-		out
-	end
-
-	# Removes indentation uniformly.
-	def justify
-		min = self.length
-		self.each_line {|line|
-			next if line.strip == &quot;&quot;
-			if line =~ /^(  *)\S/
-				min = $1.length if min &gt; $1.length
-			else
-				min = 0
-			end
-		}
-		out = &quot;&quot;
-		self.each_line {|line| out += line.slice(min...line.length) || &quot;\n&quot; }
-		out.strip
-	end
-
   def treetop_camelize
     to_s.gsub(/\/(.?)/){ &quot;::&quot; + $1.upcase }.gsub(/(^|_)(.)/){ $2.upcase }
   end
-
-	def to_tt
-		&quot;'#{self}'&quot;
-	end
-end
+end
\ No newline at end of file</diff>
      <filename>lib/treetop/ruby_extensions/string.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ module Treetop #:nodoc:
   module VERSION #:nodoc:
     MAJOR = 1
     MINOR = 4
-    TINY  = 1
+    TINY  = 2
 
     STRING = [MAJOR, MINOR, TINY].join('.')
   end</diff>
      <filename>lib/treetop/version.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>examples/ruby_syntax/syntax_test.rb</filename>
    </removed>
    <removed>
      <filename>examples/ruby_syntax/test_helper.rb</filename>
    </removed>
    <removed>
      <filename>lib/treetop/ruby_extensions/array.rb</filename>
    </removed>
    <removed>
      <filename>lib/treetop/ruby_extensions/nil.rb</filename>
    </removed>
    <removed>
      <filename>lib/treetop/ruby_extensions/object.rb</filename>
    </removed>
    <removed>
      <filename>lib/treetop/ruby_extensions/regexp.rb</filename>
    </removed>
    <removed>
      <filename>lib/treetop/ruby_extensions/symbol.rb</filename>
    </removed>
    <removed>
      <filename>lib/treetop/syntax.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>a1450e84df5ce30d46d026b63d37288f519faeb2</id>
    </parent>
  </parents>
  <author>
    <name>Clifford Heath</name>
    <email>clifford.heath@gmail.com</email>
  </author>
  <url>http://github.com/nathansobo/treetop/commit/523f83c903be832aeb56f28edd8c12e1e1a28c59</url>
  <id>523f83c903be832aeb56f28edd8c12e1e1a28c59</id>
  <committed-date>2009-09-10T16:25:50-07:00</committed-date>
  <authored-date>2009-09-10T16:25:50-07:00</authored-date>
  <message>Removed Dawid Fatyga's Treetop-in-Ruby because it breaks core classes</message>
  <tree>cf3708337439e36b6bd6cf51a134e61318d061c8</tree>
  <committer>
    <name>Clifford Heath</name>
    <email>clifford.heath@gmail.com</email>
  </committer>
</commit>
