[REBOL] Re: How do I ?
From: Al:Bri:xtra at: 12-May-2003 21:23
I got this recently from a person writing to me directly, and found I
haven't got the time to write a really good reply. :(
> Maybe you could give me a jumpstart on how to parse something in Rebol?
>
> Given strings such as:
>
> THIS IS LEFT OF %{amacro} AND THIS IS RIGHT OF
>
> so that variables contain:
>
> macleft: "THIS IS LEFT OF "
> macstr: "amacro"
> macright: " AND THIS IS RIGHT OF"
>
> The problem is that there can be an embedded macro such as:
> amac: "da"
> duh: "te"
>
> THIS IS LEFT OF %{%{amac}%{duh}} AND THIS IS RIGHT OF
>
> which ultimately becomes after evaluation:
> THIS IS LEFT OF %{date} AND THIS IS RIGHT OF
>
> Can such embedded things be parsed in Rebol?
Andrew Martin
ICQ: 26227169 http://Valley.150m.com/