|
|
hi,
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Kenneth" <kdw### [at] gmailcom> wrote:
> > This Parse_String(...) ...= ", str (U, 0, 0), "\n")
> It would be handy to have a simple macro that you could just pass _ U _ to, but
> U the text character and U the scalar value are separate and distinct.
>
> So my short dream was about implementing Parse_String to create such a macro...
>
> I think I ran out of dried frog pills.....
not quite what you thought of, the "wrong way round"? :-)
Script started on Mon 28 Sep 2020 11:05:25 BST
jr@goose:4:tmp$ c### [at] bepov
#version 3.8;
global_settings {assumed_gamma 1}
#include "strings.inc"
#macro Abc(s_)
#debug concat(s_, " = ", str(Parse_String(s_),0,2), "\n")
#end
#declare name_ = "U";
Parse_String(concat("#declare ", name_, " = 123.45;"));
Abc(name_)
jr@goose:5:tmp$ povparse be.pov
Persistence of Vision(tm) Ray Tracer Version 3.8.0-alpha.9945627.unofficial
...
==== [Parsing...] ==========================================================
U = 123.45
File 'be.pov' line 8: Parse Warning: No objects in scene.
==== [Rendering...] ========================================================
regards, jr.
Post a reply to this message
|
|