Work is going well on the last part of
#1440.
The last task is to use this data while joining several lines into one longer line. The Orange class now have access to all needed data. Some of this data comes from tokens, some from the ast (parse tree). This was tricky work. Happily, the code continues to simplify.
More importantly, I now understand completely what data are actually needed. As I was explaining the situation to Rebecca at breakfast yesterday, I realized that that the asttokens tool might provide all this data. An hour's work showed that this suspicion was correct. A simple script uses asttokens to replace all of the previous several month's work!
The show_asttokens_script unit test contains this
script. This script is not run automatically because its name does not
start with 'test'.
This is good news. All the work on #1440 has been valuable, for many reasons. The insights that lead to the script are subtle, as I'll explain in another post.
Edward