[Python-Dev] AST Transformation Hooks for Domain Specific Languages

2011-04-08 Thread Nick Coghlan
A few odds and ends from recent discussions finally clicked into something potentially interesting earlier this evening. Or possibly just something insane. I'm not quite decided on that point as yet (but leaning towards the latter). Anyway, without further ado, I present: AST Transformation

Re: [Python-Dev] AST Transformation Hooks for Domain Specific Languages

2011-04-08 Thread Michael Foord
On 8 April 2011 12:29, Nick Coghlan ncogh...@gmail.com wrote: A few odds and ends from recent discussions finally clicked into something potentially interesting earlier this evening. Or possibly just something insane. I'm not quite decided on that point as yet (but leaning towards the

Re: [Python-Dev] AST Transformation Hooks for Domain Specific Languages

2011-04-08 Thread Jon Riehl
Hi Nick, all, Just for the record, I would point to Mython (mython.org) as an existing provider of this capability. I've already added an AST node called Quote that functions like your DSL node, along with well defined lexical, concrete syntax, and compile-time properties. I have a mostly

Re: [Python-Dev] AST Transformation Hooks for Domain Specific Languages

2011-04-08 Thread David Malcolm
On Fri, 2011-04-08 at 21:29 +1000, Nick Coghlan wrote: A few odds and ends from recent discussions finally clicked into something potentially interesting earlier this evening. Or possibly just something insane. I'm not quite decided on that point as yet (but leaning towards the latter). I too

Re: [Python-Dev] AST Transformation Hooks for Domain Specific Languages

2011-04-08 Thread Eric Snow
On Fri, Apr 8, 2011 at 10:50 AM, David Malcolm dmalc...@redhat.com wrote: On Fri, 2011-04-08 at 21:29 +1000, Nick Coghlan wrote: A few odds and ends from recent discussions finally clicked into something potentially interesting earlier this evening. Or possibly just something insane. I'm

Re: [Python-Dev] AST Transformation Hooks for Domain Specific Languages

2011-04-08 Thread Terry Reedy
On 4/8/2011 1:14 PM, Jon Riehl wrote: I have a mostly functioning front end for 2.X that does these expansions (MyFront), and I'm waiting for a stable Mercurial migration Done and in use over a month. http://hg.python.org/ Further discussion of this idea is on the python-ideas list. (The