Re: [Python-ideas] parser in stdlib

On 5/10/07, Aaron Brady <castironpi@comcast.net> wrote:
I have no idea why that's relevant.
Why not? PEP or FAQ if there is one.
Because programmable syntax isn't something we want in Python; you yourself quoted an email from Guido explaining why. If you like the idea of allowing every module to define its own syntactic constructs -- at runtime or otherwise -- Perl 6, Haskell and others are more than happy to help you. Collin Winter

Huge bag of worms, I see now. I was tinkering for hobby Python use. I hadn't proposed a syntax change, not there yet. I was wanting to intercept parser somewhere after it's started parsing source, but before it gets to the rules. The particular change I'm tinkering with was replacing an equal sign with a natural word. 1, 2 to a, c -and- to a, c 1, 2 map to: a, c = 1, 2 Like I said, trivial, but I was hoping a small change to parser would work. (It's not always unambiguous either.) But here's the idea.

"Aaron Brady" <castironpi@comcast.net> wrote:
Use Logix: http://www.livelogix.net/logix/ - Josiah

Huge bag of worms, I see now. I was tinkering for hobby Python use. I hadn't proposed a syntax change, not there yet. I was wanting to intercept parser somewhere after it's started parsing source, but before it gets to the rules. The particular change I'm tinkering with was replacing an equal sign with a natural word. 1, 2 to a, c -and- to a, c 1, 2 map to: a, c = 1, 2 Like I said, trivial, but I was hoping a small change to parser would work. (It's not always unambiguous either.) But here's the idea.

"Aaron Brady" <castironpi@comcast.net> wrote:
Use Logix: http://www.livelogix.net/logix/ - Josiah
participants (3)
-
Aaron Brady
-
Collin Winter
-
Josiah Carlson