[antlr-interest] ANTLRWorks and separate lexer/parser grammars - pleading?

Terence Parr parrt at cs.usfca.edu
Fri Jan 18 15:48:26 PST 2008


On Jan 18, 2008, at 2:26 PM, Mark Volkmann wrote:

> On Jan 18, 2008 4:14 PM, Terence Parr <parrt at cs.usfca.edu> wrote:
>>
>> On Jan 18, 2008, at 1:53 PM, Mark Volkmann wrote:
>>
>>> The big lesson learned in this for me is that
>>> if my parser grammar builds an AST
>>> and the lexer rules are combined with it in a single file
>>> then I can debug the AST generation in ANTLRWorks
>>> without writing any Java code
>>>
>>> but ...
>>>
>>> if my parser and lexer rules are in separate files
>>> then I have to write Java code and run it in order to use the
>>> ANTLRWorks debugger.
>>>
>>> Correct?
>>
>> or copy the __Test__.java file from your AW dir and use that :)
>
> What creates that source file ... or is that something that is
> generated from my grammar by ANTLRWorks?

yep.

> BTW, I added a wiki page titled "When do I need to use remote
> debugging?" at http://www.antlr.org/wiki/pages/viewpage.action?pageId=5832732 
> .
> Don't let me say anything that is wrong. ;-)

Thanks...i'll take a look later.
Ter


More information about the antlr-interest mailing list