[antlr-interest] Re: woohoo! ParseTrees for free, Debugging for me!

Terence Parr parrt at cs.usfca.edu
Sun Nov 30 10:07:59 PST 2003


On Sunday, November 30, 2003, at 12:24  AM, Ruslan Zasukhin wrote:

> on 11/30/03 10:16 AM, lgcraymer at lgc at mail1.jpl.nasa.gov wrote:
>
>> --- In antlr-interest at yahoogroups.com, Terence Parr <parrt at c...>
>> wrote:
>>>
>>> On Saturday, November 29, 2003, at 10:16  PM, lgcraymer wrote:
>>>
>>>> Ter--
>>>>
>>>> If I interpret this right, you're actually visualizing parse
>> trees
>>>> without generating them.
>>>
>>> Nope, i build parse trees and then rewalk them to get step i of
>>> derivation.  You can ask for any intermediate step or all of 'em :)
>>
>> That is impressive, then--you've discovered a whole new approach to
>> instrumenting ANTLR.  I assume that you've made the overrides user
>> programmable?  It sounds like an approach that might support an
>> ANTLR test harness for grammars.
>
> I wonder, if this way can help with auto-completion task ?

Interesting idea, though I suspect that since derivations are specific 
to an input stream using $FIRST and $FOLLOW are more useful.

Terence
--
Professor Comp. Sci., University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Co-founder, http://www.jguru.com
Co-founder, http://www.knowspam.net enjoy email again!
Co-founder, http://www.peerscope.com link sharing, pure-n-simple




 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list