[antlr-interest] ANTLR v4 planning stages

Sam Harwell sharwell at pixelminegames.com
Tue Jan 19 17:30:43 PST 2010

Would it work for you if this information was placed in an xml file next
to the generated code?


-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Scott Stanchfield
Sent: Tuesday, January 19, 2010 2:50 PM
To: Terence Parr
Cc: antlr-interest at antlr.org interest
Subject: Re: [antlr-interest] ANTLR v4 planning stages

A little thing to add to the todo list if possible:

I've been looking into debugging support in eclipse. When generating
code, can you add in source-grammar-line/col-matchup comments a bit
more often? in particular, having them appear just before any action
code that's dropped into the generated code would be cool.

Even better: if the comments could also appear before/after attribute
expansion that would help as well.

My goal is to be able to use the target-language debugger and map the
current code position back to the grammar. This allows walking the
grammar while being able to use all of the features of the
target-language debugger (like inspecting variables and such).

I know how to set this up for Java (I did it in ANTLR 2 using Java
SMAPs and it worked well), and I suspect other target languages could
do something similar with a bit more information.


-- Scott

Scott Stanchfield

List: http://www.antlr.org/mailman/listinfo/antlr-interest

More information about the antlr-interest mailing list