Re: A snippet from Orange illustrates TOG's power

2020-01-19 Thread Edward K. Ream
On Saturday, January 18, 2020 at 6:30:09 AM UTC-5, Edward K. Ream wrote: > Notice the dog that isn't barking. o.colon doesn't use the list of tokens assigned to each parse-tree node. There is another dog that isn't barking: colons are significant tokens. Therefore, within o.colon, self.token.n

Re: A snippet from Orange illustrates TOG's power

2020-01-18 Thread Edward K. Ream
On Saturday, January 18, 2020 at 2:31:49 AM UTC-5, Edward K. Ream wrote: > I [knew] that the colon method would the acid test of the Orange class. Until yesterday I had only a vague idea of what o.colon would look like. The last remaining unfinished part of the Orange class is the code that spl

Re: A snippet from Orange illustrates TOG's power

2020-01-18 Thread Edward K. Ream
On Saturday, January 18, 2020 at 2:31:49 AM UTC-5, Edward K. Ream wrote: Until yesterday I had only a vague idea of what Orange.colon would look > like. Clearly, it is the simplest thing that could possibly work. > Notice the dog that isn't barking. o.colon doesn't use the list of tokens assign

A snippet from Orange illustrates TOG's power

2020-01-17 Thread Edward K. Ream
The Orange class is based on tokens. This token-based approach work perfectly, except for the placement of spaces of around colons in slices. Here are some examples, as recommend by pep 8 and as rendered by black, and now Leo's Orange class: a[1::] a