# \[grammarians\] First release of Rubyfront

**URL:** <https://rubytalk.org/t/grammarians-first-release-of-rubyfront/24993>\
**Category:** ruby-talk\
**Created:** [17 February 2006 17:27 UTC](https://rubytalk.org/t/grammarians-first-release-of-rubyfront/24993 "2006-02-17T17:27:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MenTaLguY1](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@MenTaLguY1](https://rubytalk.org/u/MenTaLguY1)\
**Post date:** [17 February 2006 17:27 UTC](https://rubytalk.org/t/grammarians-first-release-of-rubyfront/24993/1 "2006-02-17T17:27:07Z")

</div>

For those interested in things Ruby and grammatical, grammarian Xue  
Yong Zhi presents:

----- Forwarded message from [yawl.20481481@bloglines.com](mailto:yawl.20481481@bloglines.com) -----

> **···**
>
> Date: 17 Feb 2006 05:22:01 -0000  
> &nbsp;&nbsp;&nbsp;&nbsp;From: [yawl.20481481@bloglines.com](mailto:yawl.20481481@bloglines.com)  
> Reply-To: [yawl.20481481@bloglines.com](mailto:yawl.20481481@bloglines.com)  
> Subject: [grammarians] First release of Rubyfront  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To: [rubygrammar-grammarians@rubyforge.org](mailto:rubygrammar-grammarians@rubyforge.org)
> 
> I am glad to announce the first release of rubyfront (a ruby parser  
> powered by antlr).
> 
> Even though this is the first release, rubyfront can parse entire  
> ruby standard library (over 1500 .rb files).
> 
> To download or check out more details about rubyfront, please go to  
> [http://seclib.blogspot.com/2006/02/first-release-of-rubyfront.html](http://seclib.blogspot.com/2006/02/first-release-of-rubyfront.html)
> 
> Rubyfront uses BSD license. I am going to write more about it on my  
> blog later.
> 
> Xue Yong Zhi  
> [http://seclib.blogspot.com](http://seclib.blogspot.com)
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Rubygrammar-grammarians mailing list  
> [Rubygrammar-grammarians@rubyforge.org](mailto:Rubygrammar-grammarians@rubyforge.org)  
> [http://rubyforge.org/mailman/listinfo/rubygrammar-grammarians](http://rubyforge.org/mailman/listinfo/rubygrammar-grammarians)
> 
> ----- End forwarded message -----

---

<div class="post-metadata">

**Author:** ![Ptkwt](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@Ptkwt](https://rubytalk.org/u/Ptkwt)\
**Post date:** [18 February 2006 06:28 UTC](https://rubytalk.org/t/grammarians-first-release-of-rubyfront/24993/2 "2006-02-18T06:28:28Z")

</div>

This seems applicable to JRuby (since it's in ANTLR which is in Java). How  
else might it be used?

Phil

> **···**
>
> In article \<1140197197.43f6074d686cd@www.rydia.net\>, \<mental@rydia.net\> wrote:
> 
> > For those interested in things Ruby and grammatical, grammarian Xue  
> > Yong Zhi presents:
> > 
> > ----- Forwarded message from yawl.20481481@bloglines.com -----  
> > &nbsp;&nbsp;&nbsp;Date: 17 Feb 2006 05:22:01 -0000  
> > &nbsp;&nbsp;&nbsp;From: yawl.20481481@bloglines.com  
> > Reply-To: yawl.20481481@bloglines.com  
> > Subject: [grammarians] First release of Rubyfront  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To: rubygrammar-grammarians@rubyforge.org
> > 
> > I am glad to announce the first release of rubyfront (a ruby parser  
> > powered by antlr).
> > 
> > Even though this is the first release, rubyfront can parse entire  
> > ruby standard library (over 1500 .rb files).
> > 
> > To download or check out more details about rubyfront, please go to  
> > [X.Y.Z: First release of Rubyfront](http://seclib.blogspot.com/2006/02/first-release-of-rubyfront.html)
> > 
> > Rubyfront uses BSD license. I am going to write more about it on my  
> > blog later.
> > 
> > Xue Yong Zhi  
> > [http://seclib.blogspot.com](http://seclib.blogspot.com)
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Rubygrammar-grammarians mailing list  
> > Rubygrammar-grammarians@rubyforge.org  
> > [http://rubyforge.org/mailman/listinfo/rubygrammar-grammarians](http://rubyforge.org/mailman/listinfo/rubygrammar-grammarians)

---

<div class="post-metadata">

**Author:** ![David\_Vallner](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@David\_Vallner](https://rubytalk.org/u/David_Vallner)\
**Post date:** [18 February 2006 14:46 UTC](https://rubytalk.org/t/grammarians-first-release-of-rubyfront/24993/3 "2006-02-18T14:46:43Z")

</div>

Dňa Sobota 18 Február 2006 07:28 Phil Tomson napísal:

> This seems applicable to JRuby (since it's in ANTLR which is in Java).

Not necessarily, it should be useful for all sorts of toolchains - it's just  
not possible to invoke it from a Ruby app. It might also be interesting to  
port this to pure Ruby once the ANTLR Ruby backend matures. (Correct me if  
already did since I last checked.) Having a proper Ruby parser in Ruby might  
make writing tools like RDoc much easier.

David Vallner

---

<div class="post-metadata">

**Author:** ![MenTaLguY1](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@MenTaLguY1](https://rubytalk.org/u/MenTaLguY1)\
**Post date:** [18 February 2006 19:16 UTC](https://rubytalk.org/t/grammarians-first-release-of-rubyfront/24993/4 "2006-02-18T19:16:54Z")

</div>

> Not necessarily, it should be useful for all sorts of toolchains -  
> it's just not possible to invoke it from a Ruby app. It might also be  
> interesting to port this to pure Ruby once the ANTLR Ruby backend  
> matures. (Correct me if already did since I last checked.)

I think it's pretty mature now actually, though I haven't played with  
it. The Ruby backend is part of ANTLR v3, though. yawl's grammar is  
for v2.

Martin (the author of the v3 Ruby backend) has a partial v3 Ruby grammar  
in TRGP SVN now; I don't know whether we'll ultimately polish that up,  
or port yawl's grammar to v3. At the moment, Ter's leaning towards the  
latter, as it's more complete. But we'll see how it goes.

> Having a proper Ruby parser in Ruby might make writing tools like RDoc  
> much easier.

That's the plan. Not to mention Ruby implementations like JRuby.

I've actually got some evil ideas for a Ruby-in-Javascript  
implementation (Ruby in the browser, yay!), but I'm not touching that  
one until we have a decent parser waiting in the wings.

-mental

> **···**
>
> On Sat, 2006-02-18 at 23:46 +0900, David Vallner wrote:

---

<div class="post-metadata">

**Author:** ![Ptkwt](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@Ptkwt](https://rubytalk.org/u/Ptkwt)\
**Post date:** [18 February 2006 19:38 UTC](https://rubytalk.org/t/grammarians-first-release-of-rubyfront/24993/5 "2006-02-18T19:38:30Z")

</div>

In article \<200602181546.30323.david@vallner.net\>,

> **···**
>
> David Vallner \<david@vallner.net\> wrote:
> 
> > D=C5=88a Sobota 18 Febru=C3=A1r 2006 07:28 Phil Tomson nap=C3=ADsal:
> > 
> > > This seems applicable to JRuby (since it's in ANTLR which is in Java).
> > 
> > Not necessarily, it should be useful for all sorts of toolchains - it's jus=  
> > t=20  
> > not possible to invoke it from a Ruby app. It might also be interesting to=  
> > =20  
> > port this to pure Ruby once the ANTLR Ruby backend matures. (Correct me if=  
> > =20  
> > already did since I last checked.) Having a proper Ruby parser in Ruby migh=  
> > t=20  
> > make writing tools like RDoc much easier.
> 
> Quite true. It's been our 'holy grail' for several years now. I was not aware  
> taht ANTLR could generate a pure Ruby parser.
> 
> ....of course there is Ripper (not sure what the current status is) and other  
> similar projects like ParseTree, nodeTree, etc.
> 
> Phil

---

<div class="post-metadata">

**Author:** ![MenTaLguY1](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@MenTaLguY1](https://rubytalk.org/u/MenTaLguY1)\
**Post date:** [18 February 2006 20:46 UTC](https://rubytalk.org/t/grammarians-first-release-of-rubyfront/24993/6 "2006-02-18T20:46:51Z")

</div>

> Quite true. It's been our 'holy grail' for several years now. I was not aware  
> taht ANTLR could generate a pure Ruby parser.

The Ruby backend will be new with ANTLR v3.

> ....of course there is Ripper (not sure what the current status is) and other  
> similar projects like ParseTree, nodeTree, etc.

Ripper, ParseTree, etc more or less piggyback on the existing parser in  
the current Ruby interpreter.

-mental

> **···**
>
> On Sun, 2006-02-19 at 04:38 +0900, Phil Tomson wrote:

---

<div class="post-metadata">

**Author:** ![David\_Vallner](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@David\_Vallner](https://rubytalk.org/u/David_Vallner)\
**Post date:** [19 February 2006 12:09 UTC](https://rubytalk.org/t/grammarians-first-release-of-rubyfront/24993/7 "2006-02-19T12:09:13Z")

</div>

Dňa Sobota 18 Február 2006 20:38 Phil Tomson napísal:

> Quite true. It's been our 'holy grail' for several years now. I was not  
> aware taht ANTLR could generate a pure Ruby parser.
> 
> ....of course there is Ripper (not sure what the current status is) and  
> other similar projects like ParseTree, nodeTree, etc.

Not to diss all those projects, but ANTLR has that "major" ting to it. Even if  
we had other flawless pure ruby parsers, having an ANTLR grammar around for  
all manners of "Ruby in not-Ruby" weirdness seems to definately to have perks  
by itself.

I wonder if mental is petting a white persia cat plotting his evil plan...

David Vallner
