On Tue, 2006-10-24 at 18:32 -0400, 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.
Xue has a good blog entry on this here: http://seclib.blogspot.com/2005/11/more-on-leftshift-and-heredoc.html It turns out to be a whitespace thing. I'm occasionally fiddling with a JavaCC Ruby grammar and have had fun time sorting through this and also the various %w{} sorts of things... good times. Yours, Tom _______________________________________________ Rubygrammar-grammarians mailing list [email protected] http://rubyforge.org/mailman/listinfo/rubygrammar-grammarians
