|
|
>> Can we please parse strings?
>
> With the current parser the answer is basically no. Too difficult to
> implement.
>
> With a redesigned-from-scratch SDL and parser it should be rather trivial
> (although byte-compiling and JIT-compiling could present their own quirks,
> but other languages such as PHP manage to do it, so it's definitely
> possible).
>
>> The syntax would be straightforward:
>
>> #parse( <text string or string id> )
>
> Functions in the current SDL don't start with a #.
Yeah, IMO it'd be OK to continue suporting the "#command parameter"
syntax for 4.0 scripting control structures. A #parse command probably
wouldn't have parens, just quote delimited strings, string identifiers, or
functions returning a string (like concat).
Post a reply to this message
|
|