This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author edreamleo
Recipients benjamin.peterson, edreamleo, ethan smith, gregory.p.smith, gvanrossum, jimmylai, jwilk, kernc, levkivskyi, lukasz.langa, n_rosenstein, njs, serhiy.storchaka, zsol
Date 2020-07-25.12:20:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595679634.0.0.429309093304.issue33337@roundup.psfhosted.org>
In-reply-to
Content
Hello all,

This is a "sideways" response to this issue. I have been dithering about whether to give you a heads up. I hope you won't mind...

I have just announced the leoAst.py on python-announce-list. You can read the announcement here: 

https://github.com/leo-editor/leo-editor/issues/1565#issuecomment-654904747

Imo, leoAst.py solves many of the concerns mentioned in the first comment of this thread. leoAst.py is certainly a different approach.

Also imo, the TOG and TOG in leoAst.py plug significant holes in python's ast and tokenize modules. These classes might be candidates for python's ast module. If you're interested, I will be willing to do further work. If not, I completely understand.

As shown in the project's history, a significant amount of invention and discovery was required. The root of much of my initial confusion and difficulties was the notion that "real programmers don't use tokens". In fact, I discovered that the reverse is true. Tokens contain the ground truth. In many cases, the parse tree doesn't.

I would be interested in your reactions.
History
Date User Action Args
2021-08-10 08:31:09lukasz.langaunlinkissue33337 messages
2020-07-25 12:20:34edreamleosetrecipients: + edreamleo, gvanrossum, gregory.p.smith, benjamin.peterson, jwilk, njs, lukasz.langa, serhiy.storchaka, kernc, levkivskyi, ethan smith, jimmylai, zsol, n_rosenstein
2020-07-25 12:20:34edreamleosetmessageid: <1595679634.0.0.429309093304.issue33337@roundup.psfhosted.org>
2020-07-25 12:20:33edreamleolinkissue33337 messages
2020-07-25 12:20:32edreamleocreate