Re: Please review the new docs for #1440

2020-01-14 Thread Edward K. Ream
On Tue, Jan 14, 2020 at 6:10 PM Brian Theado  wrote:

> One thing I really like about the front page of that project (
https://github.com/gristlabs/asttokens) is the front-and-center example
which shows in a few lines of code how to call the code using concrete
inputs and shows exactly what the outputs are.

> I find that very valuable. Examples are usually the first thing I want to
see. Can you have something similar in #1440?

I'll see what I can do. It could turn into a separate project, but I think
it's important to complete that project before announcing 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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0rFAksMzAO1V%2BgHK-XZaUWnJLk%2BDWjJp1QVqJJgqF6nA%40mail.gmail.com.


Re: Discuss: a proposed answer to python issue #33337

2020-01-14 Thread Edward K. Ream
On Tue, Jan 14, 2020 at 8:00 PM Matt Wilkie  wrote:

> you've worked incredibly hard to this point, and it must be really
exciting/enticing to be near a point of release and of shouting "hear ye,
hear ye" loud enough to attract attention, but don't make noise just yet!

I agree that more work is needed.

At the very least I think leoAst needs to be run on it's own (e.g. not rely
> on `import leo ...`), and then have a concrete quick start example or two
> like Terry and Btheado mentioned.
>

A quick-start example is a good idea. The first that comes to mind is the
code that would fstringify a file. leoBeautify.py contains three fstringify
commands that could be reworked. However, those commands do "too much" in
some sense.

The challenge is to create a motivating example, which can be solved with
only a few lines of code. That's a big ask, because I imagine anything
useful might run to a few pages of code

I think the Python devs (and everyone else) need to be told in more detail
why the tool is useful. That involves a discussion of what "unify the token
and ast worlds" means, and why it would be useful. That's what I'll discuss
in an upcoming post.

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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1YL8gYXxAwD_rN4Qo0y3XVCu3zfS5vg3gq1py22G35yQ%40mail.gmail.com.


Re: Discuss: a proposed answer to python issue #33337

2020-01-14 Thread Edward K. Ream
> Thanks for this suggestion.  Imo, the demo is the TOG class compared with
>> similar code in asttokens, fstringify and black. The differences are
>> striking.
>>
>
> This puts the burden on all the readers to go look at the two versions of
> fstringify (and other) code and be able to figure out on their own exactly
> what striking differences you are referring to.
>

Yeah, I agree with you and Terry that there is a hole in the docs, and in
my proposed letter.

> If you do the work to present the differences in an easy to read way, then
> all readers will benefit. Are there small pieces you can put side-by-side
> which show the improvements?
>

I don't think snippets will plug the hole. What's needed is some discussion
of what this tool is actually good for. This is something that I probably
have never discussed, because it's so clear to me. I'll attempt a proper
answer in an upcoming post.

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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1DOo9kf85rPP5X_OBkGCJOOZ%2B0zYDPsZ2mnJrt4Fw1og%40mail.gmail.com.


Re: Please review the new docs for #1440

2020-01-14 Thread Brian Theado
I like your second comment
.
It is well written and informative. Nice job.

You stress "token order traversal".  How does that contrast the traversal
provided by the ast library? Does your library still traverse the ast nodes
in the same order as the ast library does, just that with each visited node
you will have access to all the tokens corresponding to that node?

Back to the first comment:

A *children* array from each ast node to its children. Order matters!


In contrast, how does the ast library link the ast nodes? Not at all?
Linked, but out of order? Something else?

And this:

   - For each token, *token.node* contains the ast.node "responsible" for
   the token.
   - For each ast node, *node.first_i* and *node.last_i* are indices into
   the token list.
   These indices give the range of tokens that can be said to be
   "generated" by the ast node.

Does this imply the user can choose between traversing each token (and from
the token reach the node) and traversing each node (and from the node reach
each token)? In what case would the user want to do one over the other?


On Tue, Jan 14, 2020 at 7:06 PM Brian Theado  wrote:

> In the theory of operation:
>
> "The notion of a *token order traversal* of a parse tree is the
> foundation of this project"
>
> In contrast, what traversal order do parse trees provide? How is token
> order different/better? What does it allow me to do that I can't otherwise
> do with parse trees?
>
> "This help is essential, because the following two source files generate
> identical parse trees!"
>
> This implies to me that with a parse tree you can't do a round trip from
> source code, to a parse tree and back to the original source code. Is that
> correct? If so is this just one externally visible benefit to your library
> or is it the main benefit? If it is the main benefit, then I think it
> should be made much more clear earlier in the document like in the Overview
> near here:
>
> "These links promise to collapse the complexity of any code that changes
> text, including the asttokens ,
> fstringify , and black
>  projects."
>
> something like:
>
> "These links allow portions of python source code to be transformed while
> leaving the rest untouched. Much of the complexity of the asttokens
> , fstringify
> , and black
>  projects comes from not being able to
> link between the text and structure of the Python code.  Using the code of
> this library can collapse the complexity of these and any projects which
> change Python text"
>
> On Tue, Jan 14, 2020 at 6:10 PM Brian Theado 
> wrote:
>
>> Ok, now I see in your proposed email response in the other thread you do
>> mention the asttokens project. And also later in #1440 you said "The
>> asttokens  project assigns
>> tokens to ast nodes, but only for statement-level ast nodes." That's useful
>> to know.
>>
>> One thing I really like about the front page of that project (
>> https://github.com/gristlabs/asttokens) is the front-and-center example
>> which shows in a few lines of code how to call the code using concrete
>> inputs and shows exactly what the outputs are.
>>
>> I find that very valuable. Examples are usually the first thing I want to
>> see. Can you have something similar in #1440?
>>
>> On Tue, Jan 14, 2020 at 5:59 PM Brian Theado 
>> wrote:
>>
>>> I just followed the stackoverflow link (
>>> https://stackoverflow.com/questions/16748029/how-to-get-source-corresponding-to-a-python-ast-node#)
>>> and someone posted that they created
>>> https://github.com/gristlabs/asttokens which "Annotates Python AST
>>> trees with source text and token information". Is that different from
>>> what your code does?
>>>
>>> On Tue, Jan 14, 2020 at 8:02 AM Edward K. Ream 
>>> wrote:
>>>
 In a day or three I'll be announcing #1440
 , the
 unification of parse trees and tokens, to python's core developers.  I'll
 do that by making a comment in this related python issue
 .

 In preparation for that announcement, I have revised/created the first
 three comments of #1440:

 - The first (main) comment
  gives an
 overview of the project and its status.
 - The second comment
 
 is the Theory of Operation.
 - The third comment
 
 contains the Project's history.

 The announcement itself will be fairly brief, and will refer 

Re: Discuss: a proposed answer to python issue #33337

2020-01-14 Thread Matt Wilkie

>
> Here is the first draft of a reply to Python issue #7 
> . This long-dormant issue discusses 
> possible improvements to python tools.
>
> I would appreciate it if you would read the thread in detail, and let me 
> know if the following reply seems on topic and useful. Thanks.
>

I still need to read through with attention, but my first blush feedback 
is: you've worked incredibly hard to this point, and it must be really 
exciting/enticing to be near a point of release and of shouting "hear ye, 
hear ye" loud enough to attract attention, but don't make noise just yet!

At the very least I think leoAst needs to be run on it's own (e.g. not rely 
on `import leo ...`), and then have a concrete quick start example or two 
like Terry and Btheado mentioned.

-matt

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/03595ad7-a789-4c7b-8dda-907fa703a3d4%40googlegroups.com.


Re: Please review the new docs for #1440

2020-01-14 Thread Brian Theado
In the theory of operation:

"The notion of a *token order traversal* of a parse tree is the foundation
of this project"

In contrast, what traversal order do parse trees provide? How is token
order different/better? What does it allow me to do that I can't otherwise
do with parse trees?

"This help is essential, because the following two source files generate
identical parse trees!"

This implies to me that with a parse tree you can't do a round trip from
source code, to a parse tree and back to the original source code. Is that
correct? If so is this just one externally visible benefit to your library
or is it the main benefit? If it is the main benefit, then I think it
should be made much more clear earlier in the document like in the Overview
near here:

"These links promise to collapse the complexity of any code that changes
text, including the asttokens ,
fstringify , and black
 projects."

something like:

"These links allow portions of python source code to be transformed while
leaving the rest untouched. Much of the complexity of the asttokens
, fstringify
, and black
 projects comes from not being able to
link between the text and structure of the Python code.  Using the code of
this library can collapse the complexity of these and any projects which
change Python text"

On Tue, Jan 14, 2020 at 6:10 PM Brian Theado  wrote:

> Ok, now I see in your proposed email response in the other thread you do
> mention the asttokens project. And also later in #1440 you said "The
> asttokens  project assigns
> tokens to ast nodes, but only for statement-level ast nodes." That's useful
> to know.
>
> One thing I really like about the front page of that project (
> https://github.com/gristlabs/asttokens) is the front-and-center example
> which shows in a few lines of code how to call the code using concrete
> inputs and shows exactly what the outputs are.
>
> I find that very valuable. Examples are usually the first thing I want to
> see. Can you have something similar in #1440?
>
> On Tue, Jan 14, 2020 at 5:59 PM Brian Theado 
> wrote:
>
>> I just followed the stackoverflow link (
>> https://stackoverflow.com/questions/16748029/how-to-get-source-corresponding-to-a-python-ast-node#)
>> and someone posted that they created
>> https://github.com/gristlabs/asttokens which "Annotates Python AST trees
>> with source text and token information". Is that different from what
>> your code does?
>>
>> On Tue, Jan 14, 2020 at 8:02 AM Edward K. Ream 
>> wrote:
>>
>>> In a day or three I'll be announcing #1440
>>> , the unification
>>> of parse trees and tokens, to python's core developers.  I'll do that by
>>> making a comment in this related python issue
>>> .
>>>
>>> In preparation for that announcement, I have revised/created the first
>>> three comments of #1440:
>>>
>>> - The first (main) comment
>>>  gives an
>>> overview of the project and its status.
>>> - The second comment
>>> 
>>> is the Theory of Operation.
>>> - The third comment
>>> 
>>> contains the Project's history.
>>>
>>> The announcement itself will be fairly brief, and will refer readers to
>>> #1440 for more details. So I want these three comments to be "perfect".
>>>
>>> Please read and critique all three comments.  I am interested in your
>>> comments and suggestions.
>>>
>>> Edward
>>>
>>> P. S. There are similar discussions in LeoDocs.leo, but I'll be
>>> referring to #1440 in the upcoming public announcements. The links above
>>> are good looking and are available to anyone, including those with no
>>> access to Leo.
>>>
>>> EKR
>>>
>>> --
>>> 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 leo-editor+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/leo-editor/5c6da99b-360f-4ab2-bae9-f9a4d589e860%40googlegroups.com
>>> 
>>> .
>>>
>>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

Re: Discuss: a proposed answer to python issue #33337

2020-01-14 Thread Brian Theado
On Tue, Jan 14, 2020 at 4:05 PM Edward K. Ream  wrote:

> On Tue, Jan 14, 2020 at 3:00 PM Terry Brown  wrote:
>
>> I wonder if a couple of demos would help,
>>
>
> Thanks for this suggestion.  Imo, the demo is the TOG class compared with
> similar code in asttokens, fstringify and black. The differences are
> striking.
>

This puts the burden on all the readers to go look at the two versions of
fstringify (and other) code and be able to figure out on their own exactly
what striking differences you are referring to. If you do the work to
present the differences in an easy to read way, then all readers will
benefit. Are there small pieces you can put side-by-side which show the
improvements? But that's extra work you may not want to do and maybe it is
hard to do. I'm just sharing my thoughts.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAO5X8Cz%3DM3b4sJDerTwy%2BfmFPs_xDeSDrrXhr2XgDjvzS1BVLg%40mail.gmail.com.


Re: Please review the new docs for #1440

2020-01-14 Thread Brian Theado
Ok, now I see in your proposed email response in the other thread you do
mention the asttokens project. And also later in #1440 you said "The
asttokens  project assigns
tokens to ast nodes, but only for statement-level ast nodes." That's useful
to know.

One thing I really like about the front page of that project (
https://github.com/gristlabs/asttokens) is the front-and-center example
which shows in a few lines of code how to call the code using concrete
inputs and shows exactly what the outputs are.

I find that very valuable. Examples are usually the first thing I want to
see. Can you have something similar in #1440?

On Tue, Jan 14, 2020 at 5:59 PM Brian Theado  wrote:

> I just followed the stackoverflow link (
> https://stackoverflow.com/questions/16748029/how-to-get-source-corresponding-to-a-python-ast-node#)
> and someone posted that they created
> https://github.com/gristlabs/asttokens which "Annotates Python AST trees
> with source text and token information". Is that different from what your
> code does?
>
> On Tue, Jan 14, 2020 at 8:02 AM Edward K. Ream 
> wrote:
>
>> In a day or three I'll be announcing #1440
>> , the unification
>> of parse trees and tokens, to python's core developers.  I'll do that by
>> making a comment in this related python issue
>> .
>>
>> In preparation for that announcement, I have revised/created the first
>> three comments of #1440:
>>
>> - The first (main) comment
>>  gives an overview
>> of the project and its status.
>> - The second comment
>> 
>> is the Theory of Operation.
>> - The third comment
>> 
>> contains the Project's history.
>>
>> The announcement itself will be fairly brief, and will refer readers to
>> #1440 for more details. So I want these three comments to be "perfect".
>>
>> Please read and critique all three comments.  I am interested in your
>> comments and suggestions.
>>
>> Edward
>>
>> P. S. There are similar discussions in LeoDocs.leo, but I'll be referring
>> to #1440 in the upcoming public announcements. The links above are good
>> looking and are available to anyone, including those with no access to Leo.
>>
>> EKR
>>
>> --
>> 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 leo-editor+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/leo-editor/5c6da99b-360f-4ab2-bae9-f9a4d589e860%40googlegroups.com
>> 
>> .
>>
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAO5X8CwBaxpjgiRnqdyzFZK2MKr7Pq1bLivL5iDhtMETHOhNLA%40mail.gmail.com.


Re: Please review the new docs for #1440

2020-01-14 Thread Brian Theado
I just followed the stackoverflow link (
https://stackoverflow.com/questions/16748029/how-to-get-source-corresponding-to-a-python-ast-node#)
and someone posted that they created https://github.com/gristlabs/asttokens
which "Annotates Python AST trees with source text and token information".
Is that different from what your code does?

On Tue, Jan 14, 2020 at 8:02 AM Edward K. Ream  wrote:

> In a day or three I'll be announcing #1440
> , the unification
> of parse trees and tokens, to python's core developers.  I'll do that by
> making a comment in this related python issue
> .
>
> In preparation for that announcement, I have revised/created the first
> three comments of #1440:
>
> - The first (main) comment
>  gives an overview
> of the project and its status.
> - The second comment
> 
> is the Theory of Operation.
> - The third comment
> 
> contains the Project's history.
>
> The announcement itself will be fairly brief, and will refer readers to
> #1440 for more details. So I want these three comments to be "perfect".
>
> Please read and critique all three comments.  I am interested in your
> comments and suggestions.
>
> Edward
>
> P. S. There are similar discussions in LeoDocs.leo, but I'll be referring
> to #1440 in the upcoming public announcements. The links above are good
> looking and are available to anyone, including those with no access to Leo.
>
> EKR
>
> --
> 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 leo-editor+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/leo-editor/5c6da99b-360f-4ab2-bae9-f9a4d589e860%40googlegroups.com
> 
> .
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAO5X8CxyBP_X72L-_b4xj4AxAcoZEA27-R%3Dz0ZONUeRfk34Yow%40mail.gmail.com.


Re: Discuss: a proposed answer to python issue #33337

2020-01-14 Thread Edward K. Ream
On Tue, Jan 14, 2020 at 3:00 PM Terry Brown  wrote:

> I wonder if a couple of demos would help,
>

Thanks for this suggestion.  Imo, the demo is the TOG class compared with
similar code in asttokens, fstringify and black. The differences are
striking.

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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3W0PNQyE7Sn2Vag5ftkXGCzyUjtraPMv9u-Eg0ZZ8jSw%40mail.gmail.com.


Re: Discuss: a proposed answer to python issue #33337

2020-01-14 Thread Terry Brown
I wonder if a couple of demos would help, "see how much better this is"
rather than "ask me about how much better this is".  Maybe a comparison
like: https://gist.github.com/kennethreitz/973705
which compares `urllib2` to `requests` code to do the same thing.
And perhaps some context like "I want to know if this seems like a
candidate for inclusion before I put together all the integrated docs. /
tests / implementation pull request" to make it obvious you not expecting
someone else to do all that.

A slightly different route might be to do the above demo / comparison stuff
in a fully fledged package on GitHub / pypi / readthedocs so that you can
get some feedback from people trying it out then propose getting into core
libs by referencing the package.  Maybe you've already started in that
direction, not sure.

Cheers -Terry

On Tue, Jan 14, 2020 at 12:30 PM Edward K. Ream  wrote:

> Here is the first draft of a reply to Python issue #7
> . This long-dormant issue discusses
> possible improvements to python tools.
>
> I would appreciate it if you would read the thread in detail, and let me
> know if the following reply seems on topic and useful. Thanks.
>
> = Start Post
>
> > So if users want to write tools that manipulate Python code, the standard
> library doesn't provide them with great options.
>
> > I suggest the following plan:
>
> Hello all,
>
> I would like to suggest another possibility.
>
> For about three months I have been obsessed with the general problem of
> manipulating Python source code *easily*. I have long experience with such
> tools.  Along the way I have studied the
> [asttokens](https://pypi.org/project/asttokens/),
> [fstringify](https://pypi.org/project/fstringify/), and
> [black](https://pypi.org/project/black/) projects.
> Imo, each in its own way illustrates that something significantly better
> would be welcome. Each project uses complex, idiosyncratic, opaque
> generators to generate results. What if something much simpler were
> possible?
>
> In late October, 2019 I completed a token-based version of fstringify. I
> could have stopped there, but then a new thought intruded. What if we could
> define a **token-order traversal** of parse trees? This new idea sparked an
> avalanche of new ideas. I couldn't let them go.
>
> After three months of literally day and night development this single idea
> has turned into a major new tool, contained at present in [leoAst.py](
> https://github.com/leo-editor/leo-editor/blob/fstrings/leo/core/leoAst.py).
> The code is simple, general, flexible, and fast, in stark contrast to the
> tools mentioned above.
>
> Leo's [issue #1440](https://github.com/leo-editor/leo-editor/issues/1440)
> (Unify the ast and token worlds)
> contains extensive documentation for this project. The first comment
> contains an overview of the project, the second comment contains a Theory
> of Operation, and the third contains a History of the Project, with links
> to the many Engineering Notebook (ENB) post that I wrote along the way.
>
> Imo, the TokenOrderGenerator (TOG) and TokenOrderTraverser (TOT) might be
> candidates for inclusion in the standard library, but first you Python devs
> will want to decide whether this project is actually something that is even
> vaguely of interest to you :-)
>
> I will be happy to answer any questions you may have. Please let me know
> your thoughts.
>
> Edward K. Ream
> An old man, crazy about computer programming
>
> = End Post
>
> 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 leo-editor+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/leo-editor/c70a9009-31d5-4cc4-b8d4-6e3af34d6d9f%40googlegroups.com
> 
> .
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAFPg46RmMgwVzuvRdU6G%2BgWR346rkNy61scpSPc0F4BUNqDzuw%40mail.gmail.com.


Discuss: a proposed answer to python issue #33337

2020-01-14 Thread Edward K. Ream
Here is the first draft of a reply to Python issue #7 
. This long-dormant issue discusses 
possible improvements to python tools.

I would appreciate it if you would read the thread in detail, and let me 
know if the following reply seems on topic and useful. Thanks.

= Start Post

> So if users want to write tools that manipulate Python code, the standard
library doesn't provide them with great options.

> I suggest the following plan:

Hello all,

I would like to suggest another possibility.

For about three months I have been obsessed with the general problem of 
manipulating Python source code *easily*. I have long experience with such 
tools.  Along the way I have studied the
[asttokens](https://pypi.org/project/asttokens/),
[fstringify](https://pypi.org/project/fstringify/), and
[black](https://pypi.org/project/black/) projects.
Imo, each in its own way illustrates that something significantly better 
would be welcome. Each project uses complex, idiosyncratic, opaque 
generators to generate results. What if something much simpler were 
possible?

In late October, 2019 I completed a token-based version of fstringify. I 
could have stopped there, but then a new thought intruded. What if we could 
define a **token-order traversal** of parse trees? This new idea sparked an 
avalanche of new ideas. I couldn't let them go.

After three months of literally day and night development this single idea 
has turned into a major new tool, contained at present in [leoAst.py](
https://github.com/leo-editor/leo-editor/blob/fstrings/leo/core/leoAst.py). 
The code is simple, general, flexible, and fast, in stark contrast to the 
tools mentioned above.

Leo's [issue #1440](https://github.com/leo-editor/leo-editor/issues/1440) 
(Unify the ast and token worlds)
contains extensive documentation for this project. The first comment 
contains an overview of the project, the second comment contains a Theory 
of Operation, and the third contains a History of the Project, with links 
to the many Engineering Notebook (ENB) post that I wrote along the way.

Imo, the TokenOrderGenerator (TOG) and TokenOrderTraverser (TOT) might be 
candidates for inclusion in the standard library, but first you Python devs 
will want to decide whether this project is actually something that is even 
vaguely of interest to you :-)

I will be happy to answer any questions you may have. Please let me know 
your thoughts.

Edward K. Ream
An old man, crazy about computer programming

= End Post

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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/c70a9009-31d5-4cc4-b8d4-6e3af34d6d9f%40googlegroups.com.


Please review the new docs for #1440

2020-01-14 Thread Edward K. Ream
In a day or three I'll be announcing #1440 
, the unification of 
parse trees and tokens, to python's core developers.  I'll do that by 
making a comment in this related python issue 
.

In preparation for that announcement, I have revised/created the first 
three comments of #1440:

- The first (main) comment 
 gives an overview of 
the project and its status.
- The second comment 
 
is the Theory of Operation.
- The third comment 
 
contains the Project's history.

The announcement itself will be fairly brief, and will refer readers to 
#1440 for more details. So I want these three comments to be "perfect".

Please read and critique all three comments.  I am interested in your 
comments and suggestions.

Edward

P. S. There are similar discussions in LeoDocs.leo, but I'll be referring 
to #1440 in the upcoming public announcements. The links above are good 
looking and are available to anyone, including those with no access to Leo.

EKR

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5c6da99b-360f-4ab2-bae9-f9a4d589e860%40googlegroups.com.