Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Alternative to Parse::RecDescent

Reply
Thread Tools

Alternative to Parse::RecDescent

 
 
Lex Williams
Guest
Posts: n/a
 
      08-26-2008
Hey guys !

Is there a ruby alternative to perl's Parse::RecDescent , or java's
ANTLR ?
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Iñaki Baz Castillo
Guest
Posts: n/a
 
      08-26-2008
El Martes, 26 de Agosto de 2008, Lex Williams escribi=C3=B3:
> Hey guys !
>
> Is there a ruby alternative to perl's Parse::RecDescent , or java's
> ANTLR ?


Not sure if TreeTop is the same type than these parsers, but if it's you=20
should use it since it's very easy and powerful:

http://treetop.rubyforge.org/

=2D-=20
I=C3=B1aki Baz Castillo

 
Reply With Quote
 
 
 
 
Ryan Davis
Guest
Posts: n/a
 
      08-27-2008

On Aug 26, 2008, at 13:04 , Lex Williams wrote:

> Is there a ruby alternative to perl's Parse::RecDescent , or java's
> ANTLR ?


If you're specifically looking for LL parser generators, you should
first know that antlr is supposed to be able to generate ruby. Last
time I took a poke at it the ruby functionality was broken and Terr
was being a PITA about accepting patches so I didn't push any further.
Maybe someone else has gotten it to work but I'm not going to try to
work with antlr anymore. Terr is an impediment to his own project imho.

There are two versions of coco/r ported to ruby. I don't think either
are being maintained (I'm the maintainer of one of them), but they work.

treetop, as mentioned, and a couple other PEG parser engines exist,
but that is a different style of beast entirely.

On the L(aL)R side, there is racc and a couple others. racc doesn't
seem to be maintained either, but it works. I use it for my
ruby_parser project. The nice thing there is that the engine ships
with ruby (but not the compiler). I'm wholly not a fan of LR myself,
but this may still be your best option depending on what you want to do.

P.S. ANYTHING is a valid alternative to Parse::RecDescent... including
nothing at all.


 
Reply With Quote
 
Eric Mahurin
Guest
Posts: n/a
 
      08-27-2008
[Note: parts of this message were removed to make it a legal post.]

On Tue, Aug 26, 2008 at 3:04 PM, Lex Williams <> wrote:

> Hey guys !
>
> Is there a ruby alternative to perl's Parse::RecDescent , or java's
> ANTLR ?
> --
> Posted via http://www.ruby-forum.com/.
>
>


I'll be uploading a long overdue release of Grammar (v0.5 is on rubyforge
now) before the Lone Star Ruby Conf (week and a half from now). Although
I'm biased, I believe it is better in almost every aspect than any other
ruby parser generator out there. It also does something that no other LL
parser does. Stay tuned...

Eric

 
Reply With Quote
 
James Gray
Guest
Posts: n/a
 
      08-27-2008
On Aug 26, 2008, at 8:14 PM, Eric Mahurin wrote:

> On Tue, Aug 26, 2008 at 3:04 PM, Lex Williams <>
> wrote:
>
>> Hey guys !
>>
>> Is there a ruby alternative to perl's Parse::RecDescent , or java's
>> ANTLR ?
>> --
>> Posted via http://www.ruby-forum.com/.
>>

> I'll be uploading a long overdue release of Grammar (v0.5 is on
> rubyforge
> now) before the Lone Star Ruby Conf (week and a half from now).
> Although
> I'm biased, I believe it is better in almost every aspect than any
> other
> ruby parser generator out there. It also does something that no
> other LL
> parser does. Stay tuned...


I cannot wait to hear that talk. It's on my must see list.

James Edward Gray II



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quicktime Alternative, RealPlayer Alternative & Media Player Classic John Capleton Computer Support 3 12-05-2005 07:41 AM
WPS DDK Updates or alternative? glenn Wireless Networking 1 11-06-2005 03:20 PM
Symantec Express Cleanup or alternative Ron P Firefox 2 04-24-2005 10:39 AM
Re: At last a REAL alternative to phaloplasty......................1TG9 ITS Firefox 0 02-16-2005 01:55 PM
Real Player Alternative and Mozilla probs dw Firefox 1 09-04-2003 12:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57