POV-Ray : Newsgroups : povray.pov4.discussion.general : Parse Strings : Re: Parse Strings Server Time
9 May 2024 04:39:49 EDT (-0400)
  Re: Parse Strings  
From: Tim Attwood
Date: 23 Oct 2007 19:09:20
Message: <471e7f20$1@news.povray.org>
>> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.