|
From: Ethan M. <merritt@u.washington.edu> - 2005-06-28 18:15:30
|
On Tuesday 28 June 2005 10:31 am, Hans-Bernhard Br=F6ker wrote:
>=20
> To recognize that a file name is being input, the parser needs=20
> some way of figuring out that what the type of a given expression is.=20
> Before string variables, that was simple: strings could only be=20
> literals, and those were easy to recognize by the opening ' or ". Now=20
> it's trickier, and in the example discussed here, it fails.
Right. It used to be sufficient to do "if (isstring(c_token))".
Now it is necessary to check
"if (isstring(c_token) || isstringvar(c_token) || isstringfunc(c_token)=
)"
The problem is we don't *have* a function isstringfunc().
We do have the first two, and they are properly used in many places.
But the loop-over-functions in plot2d.c neglected the isstringvar() test.
I've corrected this and the equivalent place in plot3d.c, and will add
the bug-fix to cvs after it's been through the usual checks and testing.
=2D-=20
Ethan A Merritt merritt@u.washington.edu
Biomolecular Structure Center
Mailstop 357742
University of Washington, Seattle, WA 98195
|