Here is another one.
On Ruote_Fluo side, you can add a set expression to a sequence
set :field=>'x',:value=>'3'

But it gets displayed as: set :field=>'x',:value=>'3':'null'

and as_ruby returns: 
        set ":field=>'x',:value=>'3'"

as_xml:
        <set ref=":field=&gt;'x',:value=&gt;'3'"/>


V/R,
Pat.


On May 17, 2010, at 7:13 PM, John Mettraux wrote:

> 
> On Mon, May 17, 2010 at 11:00:45AM -0400, Cappelaere Patrice wrote:
>> 
>> Yes, I am talking about that ruby_dsl.rb.
>> Its purpose is basically to return a parse tree for your DSL, right?  so why 
>> not use ParseTree?
> 
> Hello,
> 
> because my ruby_dsl takes as input ruby blocks and not strings of ruby code.
> 
> At one extreme, consider :
> 
> ---8<---
> pdef = Ruote.process_definition do
>  sequence do
>    alpha
>    bravo
>  end
> end
> 
> engine.launch(pdef)
> --->8---
> 
> Should I turn the block back into a String before passing it to ParseTree ?
> 
> 
>> [There is a bunch of issues with set expressions... that I was not sure to 
>> bring up before I got an exchange going]
> 
> Bring it on.
> 
> 
> Best regards,
> 
> -- 
> John Mettraux - http://jmettraux.wordpress.com
> 
> -- 
> you received this message because you are subscribed to the "ruote users" 
> group.
> to post : send email to [email protected]
> to unsubscribe : send email to [email protected]
> more options : http://groups.google.com/group/openwferu-users?hl=en

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to