Re: [proto] Thoughts on traversing proto expressions and reusing grammar

2010-10-14 Thread Eric Niebler
On 10/13/2010 11:08 PM, Thomas Heller wrote: > Let me try again ... > I tried to solve the problem that when writing a proto grammar+transform you > might want to dispatch your transform based on tags. You mean expression tags, right? First time I read this, I accepted this statement as fact. No

Re: [proto] Thoughts on traversing proto expressions and reusing grammar

2010-10-14 Thread Thomas Heller
Eric Niebler wrote: > On 10/13/2010 11:08 PM, Thomas Heller wrote: >> Let me try again ... >> I tried to solve the problem that when writing a proto grammar+transform >> you might want to dispatch your transform based on tags. > > You mean expression tags, right? First time I read this, I accepte

Re: [proto] Thoughts on traversing proto expressions and reusing grammar

2010-10-14 Thread Joel Falcou
Eric Niebler wrote: Dispatch to transforms on grammar rules. wait Jolly Jumper ! Does this means I could traverse a SIMD EDSL AST in search for a*b+c at the *visitor* level and not requiring to transform the AST beforehand by dispacthing over plus> ? If yes, sign me up :o _

Re: [proto] proto Digest, Vol 4, Issue 13

2010-10-14 Thread Christophe Henry
> // A collection of actions indexable by rules. > struct MyActions > { >    template >    struct action; > }; > > // A helper that finds the appropriate action by looking it > // up by rule > template > struct MyWhen >  : proto::when< Rule, typename Actions::template action > > {}; > > // An easie