On 10/27/06, <b class="gmail_sendername">Charles Oliver Nutter</b> <<a href="mailto:charles.nutter@sun.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">charles.nutter@sun.com</a>> wrote:<div>
<span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>So how far off from a usable grammar is what you fed to ANTLRWorks? Is<br>this mostly a neat way to visualize the YACC grammar, or is this<br>something usable? Anything that can reliably take the YACC grammar,<br>massage it a bit, and produce a new ANLTR grammar out of that could be
<br>pretty useful.</blockquote><div><br>Are you asking for a quick or automated way to (re-) generate the ANTLR 3 grammar from parse.y? It could be done, if necessary, but it would be a little painful.<br></div><br>As to whether this YACC-based grammar is usable, I'm not sure yet. Extended string handling (heredocs, expanded strings, quoting operators) aren't present at all. I still would like to compare it with Rubyfront's grammar to see how much is missing, how they line up. Maybe I'll see if I can get this to actually parse Ruby code and I'll let you know how much of the Ruby libraries it can handle.
<br><br>/Nick<br></div>