Hi Gabriele, $(expression)
where expression which yields a result (string) to replace the $(expression). result could be null or empty string "" which would elide the macro totally. $(1+1) v: "hello" $(v) The date is: $(now) YIELDS: The date is: 9-Sep-2002/15:33:59-7:00 The date tommorrow is: $(now+1) The date tommorrow is: 10-Sep-2002/15:34:43-7:00 Dick > ** Original Subject: [REBOL] Re: Embedded macros .. > ** Original Sender: Gabriele Santilli <[EMAIL PROTECTED]> > ** Original Date: Mon, 9 Sep 2002 14:59:29 -0500 > ** Original Message follows... > > Hi Dick, > > On Monday, September 9, 2002, 3:58:48 AM, you wrote: > > run> Could someone give me an idea on how to parse something like embedded macros in >Rebol? > > I have a couple questions first: > > run> $(RebolVariableorExpression) > > What do you exactly mean by "RebolVariableorExpression"? In your > example below: > > run> "The answer is: $($(a)$(n)$(s))" > > I wouldn't call "$(a)$(n)$(s)" a REBOL expression. > > run> %(EnvironmentVariable) > > There's a little problem: how to read the value of an environment > variable in REBOL? (That is, in a multiplatform way; if you're > just interested in one platform and have the /Pro version there's > no problem here.) > > Regards, > Gabriele. > -- > Gabriele Santilli <[EMAIL PROTECTED]> -- REBOL Programmer > Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. >** --------- End Original Message ----------- ** > Download NeoPlanet at http://www.neoplanet.com -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
