On Friday, October 10, 2014 2:04:43 PM UTC-5, Edward K. Ream wrote: Terry asked on irc whether there is a way of associating ast nodes with tokens and/or source code text. I naively answered, "yes, if you know where to look".
In fact, the issue is fraught: http://stackoverflow.com/questions/16748029/how-to-get-source-corresponding-to-a-python-ast-node This lead to a happy conversation with Aivar Annamaa in Estonia: http://ee.linkedin.com/pub/aivar-annamaa/26/175/112 http://www.ut.ee/en/kontakt/arvutiteaduse-instituut http://scholar.google.com/citations?user=sQ5LoEcAAAAJ Aivar filed this Python bug report: http://bugs.python.org/issue22616 My comments in support of fixing this bug: http://bugs.python.org/issue22616#msg229138 In short, until a nest of Python bugs is fixed, beautification tools that rely on compiler/ast nodes are "up the creek". Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
