Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26236
| From | Dieter Maurer <dieter@handshake.de> |
|---|---|
| Subject | Re: simplified Python parsing question |
| Date | 2012-07-30 11:11 +0200 |
| References | <5015C58D.4040101@harvee.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2718.1343639530.4697.python-list@python.org> (permalink) |
"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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: simplified Python parsing question Dieter Maurer <dieter@handshake.de> - 2012-07-30 11:11 +0200
csiph-web