On Thursday, March 31, 2022 at 3:52:55 PM UTC-5 Edward K. Ream wrote: After looking at leoAst.py with fresh eyes, the following Aha's emerged:
I have just completed all planned work on leoAst.py. The highlights: - mypy passes leoAst.py, under the requirement that all functions and methods be annotated. Only one mypy suppression remains. mypy highlighted several improvements. I've become a big fan. - The TokenOrderGenerator now uses recursive descent instead of generators. This removes tons of blah, blah, blah. - The FStringify and ReassignTokens classes are now stand-alone classes, a big conceptual simplification. Both classes now use ast.walk to find nodes of a specific kind, another big simplification. - The TokenOrderTraverser class is now used nowhere in Leo. It has become an odd curio, nothing more. I'm glad. This has been a great week for leoAst.py. 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 view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/a1e31f2e-5976-46ca-9e7d-e736ee9b4e02n%40googlegroups.com.
