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

[REBOL] Re: 'compose on 'parse rules

From: rotenca:telvia:it at: 14-Jan-2002 2:30

Hi Andrew,
> The most annoying problem with Rebol at the moment, is that 'compose on > 'parse rule actions, composes the action parts of the rules. It's quite > tricky arranging script to avoid this problem. I use some thing like: > > compose/deep [ > ( > make paren! [ > ; rule action stuff in here. > ] > ) > ] > > Any one got any better ideas?
Good trick. If you do not need compose/deep: compose [thru (var) [(print "found")]] or: reduce ['thru var [(print "found")]] To put paren in block is a little slower but fix a strange bug in parse when other rules follows the paren! But I have the impression that not always to use or not to use the block around the paren! gives the same result (bug excluded). --- Ciao Romano