|
From: Ethan M. <merritt@u.washington.edu> - 2005-07-26 18:20:55
|
On Tuesday 26 July 2005 09:49 am, Ethan Merritt wrote: > > gnuplot> set title offset 1,1 > undefined variable: offset > > What has happened is that whenever the keyword "title" > is seen, the parser calls try_to_get_string(), which > then chokes if the next token on the line is a keyword > rather than a string or an expression. I have just fixed the class of error exemplified above by adding an explicit check for valid keywords in set_xyzlabel(). This is similar to existing code in set_label(). However, I think it would be cleaner if the expression evaluation code triggered by try_to_get_string() simply returned an undefined variable rather than bailing to the command line with an error message. That would be a more general solution to the problem, and would remove the need for long lists of explicit tests for various keywords in these and other places. The first place to change is f_push(), if anyone wants to look into this. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |