Re: simplified Python parsing question

Discussion in 'Python' started by Dieter Maurer, Jul 30, 2012.

  1. "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 =,
    > 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.
    Dieter Maurer, Jul 30, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Grey

    simplified chinese encoding

    Grey, Apr 20, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    492
  2. Eric S. Johansson

    simplified Python parsing question

    Eric S. Johansson, Jul 30, 2012, in forum: Python
    Replies:
    2
    Views:
    183
    Eric S. Johansson
    Jul 30, 2012
  3. Eric S. Johansson

    Re: simplified Python parsing question

    Eric S. Johansson, Jul 30, 2012, in forum: Python
    Replies:
    0
    Views:
    143
    Eric S. Johansson
    Jul 30, 2012
  4. Laszlo Nagy

    Re: simplified Python parsing question

    Laszlo Nagy, Jul 30, 2012, in forum: Python
    Replies:
    0
    Views:
    183
    Laszlo Nagy
    Jul 30, 2012
  5. Eric S. Johansson

    Re: simplified Python parsing question

    Eric S. Johansson, Jul 30, 2012, in forum: Python
    Replies:
    6
    Views:
    201
    BartC
    Aug 3, 2012
Loading...

Share This Page