[Rubygrammar-grammarians] [ANN] The Ruby Grammar Project
MenTaLguY
mental at rydia.net
Sat Nov 26 12:42:57 EST 2005
On Sat, 2005-11-26 at 20:27 +0900, Christian Neukirchen wrote:
> MenTaLguY <mental at rydia.net> writes:
>
> > The The Ruby Grammar Project aims to:
> >
> > 1. Develop an ANTLR grammar as an alternative to the YACC grammar which
> > is ruining everybody's parties these days.
>
> In general, a good idea. However, can there be made a pure-Ruby
> parser from an ANTLR grammar?
Do you mean:
1. Is it possible to write a complete grammar for Ruby in ANTLR, given
how squirrely its (Ruby's) syntax is?
2. Does ANTLR have a backend that can generate parsers in Ruby?
The answers are:
1. Yes. Ter (who is primarily writing the grammar) seems pretty
confident that if YACC can do it, ANTLR can do it. Given he's a guy on
the forefront of parser research, I think he can make it happen.
2. Not yet but eventually. The grammar will be for the new ANTLR v3,
for which most backends are still being written. I'm working on the
Ruby backend, though that's under the aegis of the ANTLR project rather
than the The Ruby Grammar Project.
-mental
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/rubygrammar-grammarians/attachments/20051126/c57a7593/attachment.bin
More information about the Rubygrammar-grammarians
mailing list