Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26217
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <esj@harvee.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.108 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.78; '*S*': 0.00; 'subject:Python': 0.05; 'subject:question': 0.08; 'python': 0.09; 'boundaries': 0.09; 'conventions.': 0.09; 'solution,': 0.09; 'subject:parsing': 0.09; 'suggest': 0.11; 'folks': 0.15; '(class': 0.16; 'naming': 0.16; 'programmers.': 0.16; 'rough': 0.16; 'exists': 0.17; 'instance,': 0.17; 'disabled': 0.22; 'example': 0.23; 'funding': 0.23; "i've": 0.23; 'header:User-Agent:1': 0.26; '---': 0.26; 'environment.': 0.27; 'question': 0.27; 'integrate': 0.27; "doesn't": 0.28; "i'm": 0.29; 'figure': 0.30; 'code': 0.31; 'problem.': 0.32; 'accessible': 0.33; 'symbol': 0.33; 'to:addr:python-list': 0.33; 'clear': 0.35; 'bigger': 0.35; 'eric': 0.35; 'received:org': 0.36; 'really': 0.36; 'ability': 0.36; 'tool': 0.36; 'but': 0.36; 'programmers': 0.36; 'method': 0.36; 'should': 0.36; 'enough': 0.36; 'some': 0.38; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'build': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'help': 0.40; 'end': 0.40; 'first': 0.61; 'back': 0.62; 'solve': 0.62; 'between': 0.63; 'world': 0.63; 'perfect': 0.63; 'more': 0.63; 'within': 0.64; 'gone': 0.64; 'making': 0.64; 'region.': 0.65; 'forward': 0.66; 'finally': 0.66; 'believe': 0.69; '80%': 0.84; 'moderately': 0.84; 'received:192.168.1.7': 0.84; 'url:document': 0.84; 'url:edit': 0.84; 'working,': 0.84; 'remember,': 0.93; 'sitting': 0.93; 'technique': 0.93 |
| X-Virus-Scanned | amavisd-new at harvee.org |
| Date | Sun, 29 Jul 2012 19:21:49 -0400 |
| From | "Eric S. Johansson" <esj@harvee.org> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | simplified Python parsing question |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2705.1343604584.4697.python-list@python.org> (permalink) |
| Lines | 35 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1343604584 news.xs4all.nl 6900 [2001:888:2000:d::a6]:48610 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:26217 |
Show key headers only | View raw
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 and potentially, it's rough type (class name, instance, etc.). This is really a much bigger question that I want to get into right now but I'm looking just to build a demo to back up a storyboard plus video. 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 =, if you are sitting on b, the boundaries are = and +, if you are sitting on c, the boundaries are + and end of line. a call the region between those boundaries the symbol region. if this example is clear to you, what you suggest for a method of finding a whole statement, or a whole symbol region? note, doesn't have to be perfect or complete solution, just good enough to let me do a moderately complex demo and seek funding accessibility world to build a complete environment. 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. Looking forward to responses. --- eric first draft write up of technique https://docs.google.com/document/d/1In11apApKozw_UOPAhVz0ePqns72_6652Dra34xWp4E/edit
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
simplified Python parsing question "Eric S. Johansson" <esj@harvee.org> - 2012-07-29 19:21 -0400
Re: simplified Python parsing question Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-30 03:33 +0000
Re: simplified Python parsing question "Eric S. Johansson" <esj@harvee.org> - 2012-07-30 02:17 -0400
csiph-web