I've finished rewriting the ruby cvs yacc grammar to PGE.
I had to fix quite a few left recursion problems to eliminate infinite
recursion.
It parses my simple puts.rb example, but parse time is really slow.. 2
minutes.
I'm sure I've made some dumb grammar mistakes that is slowing it down.
Source available at http://tewk.com/pruby.tgz
Suggestions or debugging tips welcome.
Thanks,
Kevin Tew
Patrick R. Michaud wrote:
On Fri, Jul 07, 2006 at 10:07:57AM -0600, Kevin Tew wrote:
I based the initial PGE grammar for PRuby off of
svn://rubyforge.org/var/svn/rubygrammar/grammars/antlr-v3/trunk/ruby.g
which is in complete.
I'm looking for a BNF style description of the Ruby grammar. Otherwise
I will have to dig into :pserver:[EMAIL PROTECTED]:/src/parse.y.
I'll be glad to provide any help that I can in building a PGE
version of the grammar -- just let me know where I can help.
Pm