Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: 'compose on 'parse rules

From: brett:codeconscious at: 14-Jan-2002 18:32

> Any one got any better ideas?
Nope. But I can shift the problem a little. It may or may not make sense for your script but if you give the action a name then you don't need the parens:
>> my-action: [(print "i'm here!")]
== [(print "i'm here!")]
>> parse [ x ] compose [(to-word "word!") my-action]
i'm here! == true Brett.