Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26231
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.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.017 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.05; 'parser': 0.07; 'subject:question': 0.08; 'python': 0.09; '(written': 0.09; 'cursor': 0.09; 'subject:parsing': 0.09; 'wrong,': 0.09; ':-)': 0.13; 'describing': 0.16; 'rough': 0.16; 'syntax.': 0.16; 'url:py': 0.16; 'string': 0.17; 'wrote:': 0.17; 'odd': 0.17; "shouldn't": 0.17; 'string,': 0.17; 'url:view': 0.18; 'mostly': 0.20; 'trying': 0.21; 'bit': 0.21; 'provided,': 0.22; 'example': 0.23; "i've": 0.23; 'seems': 0.23; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'library.': 0.27; "doesn't": 0.28; 'rest': 0.28; "d'aprano": 0.29; 'issues.': 0.29; 'steven': 0.29; "i'm": 0.29; 'ends': 0.30; 'sense': 0.31; 'symbol': 0.33; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'eric': 0.35; 'pm,': 0.35; 'received:org': 0.36; 'but': 0.36; "i'll": 0.36; 'well.': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'things': 0.38; 'url:docs': 0.38; 'gives': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'end': 0.40; 'bottom': 0.60; "you've": 0.61; 'first': 0.61; 'kind': 0.61; 'different': 0.63; 'details': 0.63; 'gone': 0.64; 'jul': 0.65; 'middle': 0.66; 'sounds': 0.71; 'hoping': 0.72; '13-14': 0.84; 'moves': 0.84; 'received:192.168.1.7': 0.84; 'url:edit': 0.84; 'sitting': 0.93; 'have.': 0.95 |
| X-Virus-Scanned | amavisd-new at harvee.org |
| Date | Mon, 30 Jul 2012 02:17:33 -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 | Re: simplified Python parsing question |
| References | <mailman.2705.1343604584.4697.python-list@python.org> <5016008b$0$11120$c3e8da3@news.astraweb.com> |
| In-Reply-To | <5016008b$0$11120$c3e8da3@news.astraweb.com> |
| 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.2714.1343629066.4697.python-list@python.org> (permalink) |
| Lines | 33 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1343629066 news.xs4all.nl 6854 [2001:888:2000:d::a6]:54058 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:26231 |
Show key headers only | View raw
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 read the docs? It gives full details of the Python syntax. Yes I have. I was hoping for a different perspective because what I'm trying to do is middle out parsing. Top-down when the scanner focus moves from left to right and bottom up when the scanner focus moves from right to left. sounds kind of odd when I describe it that way but both the cursor is on the middle of a name string and I need to look to either end of that name string before can do a conversion to a symbol string, I have to look at both ends in different ways. If you've read the documentation I've provided, would it be a better example to use for describing some of the issues. Here's a very rough draft of a storyboard https://docs.google.com/presentation/d/1fuKyo9AE6i9ZdX2lucwK0v_W5Kx9M3Mezavm40wzCo8/edit the first 13-14 slides are the working content for the storyboard. the rest is mostly "memory" of things I was thinking about so if it doesn't make sense or seems wrong, don't give me grief. :-) > Here's a Python parser using the pyparsing library. It's a bit old > (written for Python 2.4) but it shouldn't be hard to update it to new > syntax: > > http://pyparsing.wikispaces.com/file/view/pythonGrammarParser.py > thanks for the reference. I'll take a look at it as well.
Back to comp.lang.python | Previous | Next — Previous 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