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
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
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
_
> // 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