[grammarians] Ruby grammar for v3

Terence Parr parrt at cs.usfca.edu
Tue Dec 27 13:08:55 EST 2005


On Dec 26, 2005, at 10:14 PM, Martin Traverso wrote:

>
> On 12/26/05, Terence Parr <parrt at cs.usfca.edu> wrote: Great!  How  
> is v3 working out for you vis-a-vis the grammar?
>
> So far, so good. Although I must say I haven't tried anything too  
> fancy yet. I did find a bug in ea7 with syntactic predicates, but  
> it seems to have been fixed in the current repository version.

Cool.

> One thing I would like to see is better messages from the tool in  
> the case of ambiguities. The "Decision can match input such as ...  
> using multiple alternatives: 1, 2" are not too helpful when dealing  
> with complex rules.

Actually I think they are *way* better.  At least now you get actual  
sequence info and are not dumped with all possible tokens at depth  
i.  Further, using ANTLRWorks it will show the paths that are  
nondeterministic visually in a syntax diagram :)

Ter


More information about the Rubygrammar-grammarians mailing list