Re: Possible problem with interpreter?

David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]> Fri, 28 Mar 2003 22:20:55 -0500
Newsgroups gmane.comp.lang.moto.devel
Message-ID <[email protected]>
On Friday, March 28, 2003, at 04:07  PM, Shay Harding wrote:

> Ok, for real this time :) I tested this numerous ways, but for some 
> reason
> the following syntax is not considered valid:
>
> ${
>     global String variable = "TEST"
> }$
>
> <$(variable)>
>
>
Yeah ... a while back I was asked to make '<$' an escape into embedded 
mode for dreamweaver so that's what is getting matched in the above 
example

> Where the '<' and '>' surrounding "$(variable)" should be parsed as 
> plain
> old HTML output. Also the following does not work either:
>
> ${
> 	global String x = "";
> }$
>
> $5.00
>
> Where '$5.00' should be plain old output. If I escape the '$' it works.

Curious ... I can understand why moto would want to see this escaped 
since it may be the start of a macro ... but it seems to me that unless 
the $ is followed by a letter character or an '_' or if what follows it 
doesn't match any known macro It should just be passed over.

-Dave

>  The
> first one does not work unless I place some other character (a space 
> for
> example) after the '<'.
>
>
> Shay
>
> ---
>
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.463 / Virus Database: 262 - Release Date: 3/17/2003
>
>
>