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/btakita/treetop.git
Updated site to reflect new repository home
pivotal (author)
Fri Mar 07 14:07:45 -0800 2008
commit  be4848611026d224ce106ff3249214f957dcb63c
tree    3f74e6a9db0921d29f0f3a6599bb33e4c289d39b
parent  8771a78bc3b1e1874f44f5c0eec6e84df55da629
  • .gitignore
  • doc/contributing_and_planned_features.markdown
  • doc/site.rb
  • doc/site/contribute.html
  • doc/site/images/.DS_Store
  • doc/site/images/bottom_background.png
  • doc/site/images/middle_background.png
  • doc/site/images/paren_language_output.png
  • doc/site/images/pivotal.gif
  • doc/site/images/top_background.png
  • doc/site/index.html
  • doc/site/pitfalls_and_advanced_techniques.html
  • doc/site/screen.css
  • doc/site/semantic_interpretation.html
  • doc/site/syntactic_recognition.html
  • doc/site/using_in_ruby.html
  • doc/sitegen.rb
...
1
2
3
4
5
 
 
...
1
2
3
 
4
5
6
0
@@ -1,4 +1,5 @@
0
 *.gem
0
 *.iml
0
 *.iws
0
-*.ipr
0
\ No newline at end of file
0
+*.ipr
0
+doc/site/*.*
...
3
4
5
 
 
6
7
8
9
10
11
...
3
4
5
6
7
8
9
 
10
11
12
0
@@ -3,9 +3,10 @@ I've created a <a href="http://groups.google.com/group/treetop-dev">Google Group
0
 treetop-dev@google-groups.com
0
 
0
 #Contributing
0
+Visit <a href="http://github.com/nathansobo/treetop/tree/master">the Treetop repository page on GitHub</a> in your browser for more information about checking out the source code.
0
+
0
 I like to try Rubinius's policy regarding commit rights. If you submit one patch worth integrating, I'll give you commit rights. We'll see how this goes, but I think it's a good policy.
0
 
0
-The source code is currently stored in a git repository at <a href="http://repo.or.cz/w/treetop.git">http://repo.or.cz/w/treetop.git</a>
0
 
0
 ##Getting Started with the Code
0
 Treetop compiler is interesting in that it is implemented in itself. Its functionality revolves around `metagrammar.treetop`, which specifies the grammar for Treetop grammars. I took a hybrid approach with regard to definition of methods on syntax nodes in the metagrammar. Methods that are more syntactic in nature, like those that provide access to elements of the syntax tree, are often defined inline, directly in the grammar. More semantic methods are defined in custom node classes.
...
10
11
12
13
 
14
15
16
...
10
11
12
 
13
14
15
16
0
@@ -10,7 +10,7 @@ class Layout < Erector::Widget
0
         :type => "text/css",
0
         :href => "./screen.css"
0
         
0
- text %(
0
+ rawtext %(
0
           <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
0
           </script>
0
           <script type="text/javascript">
...
42
43
44
45
 
46
47
48
...
42
43
44
 
45
46
47
48
0
@@ -42,7 +42,7 @@ class Layout < Erector::Widget
0
 
0
   def bluecloth(relative_path)
0
     File.open(File.join(File.dirname(__FILE__), relative_path)) do |file|
0
- text BlueCloth.new(file.read).to_html
0
+ rawtext BlueCloth.new(file.read).to_html
0
     end
0
   end
0
 

Comments

    No one has commented yet.