[antlr-interest] ANTLR v4 planning stages
parrt at antlr.org
Tue Jan 19 12:56:31 PST 2010
On Jan 19, 2010, at 12:50 PM, Scott Stanchfield wrote:
> 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.
yeah, easy to do
> Even better: if the comments could also appear before/after attribute
> expansion that would help as well.
that could work although it might cloud the output a little bit.
> 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).
yeah, it's amazing how much those comments help even as they are.
> 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.
> BTW: +1 for $FIRST/$FOLLOW!
yep, long overdue
More information about the antlr-interest