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

Sam

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Scott Stanchfield
Sent: Tuesday, January 19, 2010 2:50 PM
To: Terence Parr
Cc: [email protected] 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.


BTW: +1 for $FIRST/$FOLLOW!

-- Scott

----------------------------------------
Scott Stanchfield
http://javadude.com

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.


Reply via email to