Re: [proto] So I heard proto make AST ...

2010-08-11 Thread Thomas Heller
On Wednesday 11 August 2010 00:45:44 Eric Niebler wrote: On 8/10/2010 3:52 PM, Thomas Heller wrote: On Tue, Aug 10, 2010 at 8:56 PM, Eric Niebler wrote: Good. Now if you are saying that Proto's existing transforms are too low-level and that things like pre- and post-order traversals

Re: [proto] So I heard proto make AST ...

2010-08-11 Thread joel falcou
On 11/08/10 17:52, Eric Niebler wrote: I don't exactly recall the details of Joel's technique. My experiments to separate transforms from grammars were largely unsuccessful because control flow often need pattern matching. I'd like to see alternate designs. Mine was just a post-order

Re: [proto] So I heard proto make AST ...

2010-08-11 Thread Joel . Falcou
This is kind of like Proto's evaluation contexts, IIUC. I'm not wild for them because often just the tag isn't enough information to find the right handler. But maybe it covers enough use cases and can be made easier to use. Right now, proto has an eval function that takes an expression and