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

[REBOL] Re: Another question

From: al:bri:xtra at: 16-Feb-2002 8:50

Joel wrote:
> Suggestions anyone? What am I overlooking? > began: "[" copy token to "]" "]" ended: ( > if found? other: select/skip pairs token 2 [ > change/part began first other ended > :ended > ] > )]
The ":ended" has to be in the parse rule and outside the action part. Also you have to move the 'ended point as well. Like: began: "[" copy token to "]" "]" ended: ( if found? other: select/skip pairs token 2 [ ended: change/part began first other ended ] ):ended] That way the 'parse is set to after the token or the replacement, consistently. I hope that helps! Andrew Martin ICQ: 26227169 http://valley.150m.com/