Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #26236 > unrolled thread

Re: simplified Python parsing question

Started byDieter Maurer <dieter@handshake.de>
First post2012-07-30 11:11 +0200
Last post2012-07-30 11:11 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: simplified Python parsing question Dieter Maurer <dieter@handshake.de> - 2012-07-30 11:11 +0200

#26236 — Re: simplified Python parsing question

FromDieter Maurer <dieter@handshake.de>
Date2012-07-30 11:11 +0200
SubjectRe: simplified Python parsing question
Message-ID<mailman.2718.1343639530.4697.python-list@python.org>
"Eric S. Johansson" <esj@harvee.org> 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 =,
> 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.

Check the lexical definitions. They essentially define, what
a "symbol region" is.

In essence, you have names, operators, literals whitespace and comments --
each with quite a simple definition.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web