[grammarians] Comparison to RubyFront grammar

Terence Parr parrt at cs.usfca.edu
Wed Oct 25 12:56:12 EDT 2006


On Oct 24, 2006, at 3:32 PM, MenTaLguY wrote:

> On Tue, 2006-10-24 at 16:26 -0500, Nick Sieger wrote:
>> I for one am still interested.  I was looking at the rubyfront  
>> grammar
>> this weekend and I don't think it should be too hard to port to ANTLR
>> 3.
>>
>> Also, what about the idea of a multi-pass parser?  With Ruby's syntax
>> so complex, it might help to break down into several stages for
>> understandability.
>
> That was Terence's opinion as well, if I remember correctly (Hi Ter!).
> I've not had time to look at the RubyFront grammar deeply, but I was a
> little surprised that Yong Zhi was apparently able to do heredocs
> without multiple passes, actually.

Hi Guys. :)  Yeah, I got discouraged when I saw how hideous the  
lexing issue was in Ruby. blech.  That said, a CharStream that did  
some fix up would make things MUCH easier, but not completely as foo 
[1] depends on some serious prior context (that is unavailable really  
to the lexer).

Anyway, count me in for ANTLR v3 tech support and bug fixes. ;)


Ter


More information about the Rubygrammar-grammarians mailing list