Re: simplified Python parsing question

2012-08-03 Thread BartC
"Eric S. Johansson" wrote in message news:mailman.2752.1343700723.4697.python-l...@python.org... On 7/30/2012 9:54 PM, Steven D'Aprano wrote: It would please me greatly if you would be willing to try an experiment. live my life for a while. Sit in a chair and tell somebody what to type and w

Re: simplified Python parsing question

2012-07-31 Thread Chris Angelico
On Tue, Jul 31, 2012 at 11:54 AM, Steven D'Aprano wrote: > Google Docs is, in my opinion, a nasty piece of rubbish > that doesn't run on any of my browsers. As far as I'm concerned, I'd > rather download a Word doc, because at least I can open that in > OpenOffice or Abiword and read it. Something

Re: OT: accessibility (was "Re: simplified Python parsing question")

2012-07-31 Thread Eric S. Johansson
On 7/30/2012 10:54 PM, Tim Chase wrote: On 07/30/12 21:11, Eric S. Johansson wrote: the ability for multiple people to work on the same document at the same time is really important. Can't do that with Word or Libre office. revision tracking in traditional word processors are unpleasant to work

Re: OT: accessibility (was "Re: simplified Python parsing question")

2012-07-30 Thread Ian Kelly
On Mon, Jul 30, 2012 at 8:54 PM, Tim Chase wrote: > I've tried a similar experiment and am curious on your input device. > Eye-tracking/dwell-clicking? A sip/puff joystick? Of the various > input methods I tried, I found that Dasher[1] was the most > intuitive, had a fairly high input rate and

OT: accessibility (was "Re: simplified Python parsing question")

2012-07-30 Thread Tim Chase
On 07/30/12 21:11, Eric S. Johansson wrote: > the ability for multiple people to work on the same document at > the same time is really important. Can't do that with Word or > Libre office. revision tracking in traditional word processors > are unpleasant to work with especially if your hands a

Re: simplified Python parsing question

2012-07-30 Thread Eric S. Johansson
On 7/30/2012 9:54 PM, Steven D'Aprano wrote: On Mon, 30 Jul 2012 11:40:50 -0400, Eric S. Johansson wrote: If you have been reading the papers, you would understand what I'm doing. That is the second time, at least, that you have made a comment like that. Actually, it's probably more like the

Re: simplified Python parsing question

2012-07-30 Thread Steven D'Aprano
On Mon, 30 Jul 2012 11:40:50 -0400, Eric S. Johansson wrote: > If you have been reading the papers, you would understand what I'm > doing. That is the second time, at least, that you have made a comment like that. Understand that most people are not going to follow links to find out whether or

RE: simplified Python parsing question

2012-07-30 Thread Paul van der Linden
al message- From:Eric S. Johansson Sent:Mon 30-07-2012 12:00 Subject:Re: simplified Python parsing question To:python-list@python.org; On 7/30/2012 5:25 AM, Laszlo Nagy wrote: > > Did you try to use pygments? > > http://pygments.org/docs/api/ > thanks, I'll take a look. >

Re: simplified Python parsing question

2012-07-30 Thread Eric S. Johansson
On 7/30/2012 10:59 AM, Laszlo Nagy wrote: yeah the problem is also little more complicated than simple parsing of Python code. For example, one example (from the white paper) *meat space blowback = Friends and family [well-meaning attempt] *could that be parsed by the tools you mention?

Re: simplified Python parsing question

2012-07-30 Thread Laszlo Nagy
yeah the problem is also little more complicated than simple parsing of Python code. For example, one example (from the white paper) *meat space blowback = Friends and family [well-meaning attempt] *could that be parsed by the tools you mention? It is not valid Python code. Pygments is ab

Re: simplified Python parsing question

2012-07-30 Thread Eric S. Johansson
On 7/30/2012 5:25 AM, Laszlo Nagy wrote: Did you try to use pygments? http://pygments.org/docs/api/ thanks, I'll take a look. I would first tokenize the code, then divide it by statement keywords. Finally, you just need to find expression/assignment statements in the remaining sections.

Re: simplified Python parsing question

2012-07-30 Thread Laszlo Nagy
I appreciate the help because I believe that once this is working, it'll make a significant difference in the ability for disabled programmers to write code again as well as be able to integrate within existing development team and their naming conventions. Did you try to use pygments? htt

Re: simplified Python parsing question

2012-07-30 Thread Dieter Maurer
"Eric S. Johansson" writes: > When you are sitting on or in a name, you look to the left or look to > the right what would you see that would tell you that you have gone > past the end of that name. For example > > a = b + c > > if you are sitting on a, the boundaries are beginning of line and =,

Re: simplified Python parsing question

2012-07-29 Thread Eric S. Johansson
On 7/29/2012 11:33 PM, Steven D'Aprano wrote: On Sun, 29 Jul 2012 19:21:49 -0400, Eric S. Johansson wrote: When you are sitting on or in a name, you look to the left or look to the right what would you see that would tell you that you have gone past the end of that name. For example Have you r

Re: simplified Python parsing question

2012-07-29 Thread Steven D'Aprano
On Sun, 29 Jul 2012 19:21:49 -0400, Eric S. Johansson wrote: > When you are sitting on or in a name, you look to the left or look to > the right what would you see that would tell you that you have gone past > the end of that name. For example Have you read the docs? It gives full details of the

simplified Python parsing question

2012-07-29 Thread Eric S. Johansson
as some folks may remember, I have been working on making Python and its tool base more accessible to disabled programmers. I've finally come up with a really simple technique which should solve 80% of the problem. What I need to figure out is how to find a spot in the code where a symbol exists