Re: [proto] Recursive functions in a mini language

2010-08-09 Thread Eric Niebler
(Sorry for the delay. It was a crazy weekend.) On 8/6/2010 8:21 PM, Manjunath Kudlur wrote: > Eric Niebler wrote: >> Let me understand. Your goal is to have something like spirit subrules, >> except the subrules are like ordinary functions, and the functions >> should be invokable by name, is that

Re: [proto] Recursive functions in a mini language

2010-08-09 Thread Manjunath Kudlur
> Actually, I think your users will be forced to do: (module->*func)(...) > because of the precedence. That's pretty ugly. But I see where you're > going. Your scheme could be made to work as you describe, I think. Yes, you are right, I had forgotten about the precedence. > I'm left wondering why

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

2010-08-09 Thread Gordon Woodhull
Hi Joel, Christophe, Eric, I think you should talk to Gordon Woodhull. He's building a metagraph >> (among others) library, which I am going to use in msm for >> compile-time calculations and fsm analysis. This means there will be >> temporarily a metagraph library inside msm as proof of conc

Re: [proto] Recursive functions in a mini language

2010-08-09 Thread Eric Niebler
On 8/9/2010 5:39 PM, Manjunath Kudlur wrote: >> Actually, I think your users will be forced to do: (module->*func)(...) >> because of the precedence. That's pretty ugly. But I see where you're >> going. Your scheme could be made to work as you describe, I think. > > Yes, you are right, I had forgo

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

2010-08-09 Thread joel falcou
On 10/08/10 05:24, Gordon Woodhull wrote: Sorry for the slow response - been on vacation offline. No problem ;) I wonder if Dan Marsden's Traversal library would solve this out of the box? http://boost-spirit.com/dl_docs/traversal/html/traversal/introduction.html Oh nice link, I didn't knew