|
From: Juergen W. <wie...@fr...> - 2005-07-27 17:55:02
|
On Wednesday 27 July 2005 18:18, Ethan Merritt wrote:
> On Wednesday 27 July 2005 02:05 am, Petr Mikulik wrote:
> > > Several disambiguating keywords have been added already (e.g. "font",
> > > "offset", "at") for exactly this reason. Do you know of any other
> > > cases that are violators, like ... notitle "title"?
> >
> > set label {<tag>} {"<label text>"}
>
> That is unambiguous, since <tag> cannot be a string, and "<label text>"
> cannot be a number. The existing code correctly handles this.
But then also "plot 'file.dat' notitle with lines" is unambiguus.
The token "with" is a valid key word at its place, so it has to be
read as one. It should be general policy that key words have higher
precedence than optional expressions (numbers and strings).
That said, the implementation of "notitle" is buggy. And I don't
really know how it should be fixed.
Juergen
|