> > Allow me to repeat the grammar in used by parsers and semantics for
> it:
> > search-clause ::= ">" [identifier "="] term cql-query
> Does this produce unambiguous cql?
> >dc1="core-v1" dc1.title=first and dc1.title=second
> Is the second dc1 governed by the first assignment? If so, is that
> because the first assignment is "global" (and if so how do we know that)
> or because it is the most recent assignment for dc1?
Yes and no, respectively, as I understand it:
It does apply to both because the bracketing is implicitly:
> dc1="core1" (dc1.title = first and dc1.title=second)
So if you have multiple prefixes:
>dc1=foo ( >dc2=foo2 ( >dc3=foo3 ( cql.resultsetname="fish" )))
Ray:
> How about:
> >dc1="core-v1" dc1.title=first and >dc1="core-v1a" dc1.title=second
> and dc1.title=third
Lets remove the mappings and put in the parens:
((dc1.title=first and dc1.title=second) and dc1.title=third)
And put back the mappings:
>dc1=v1 ((dc1.title=first and >dc1=v1a dc1.title=second) and
dc1.title=third)
> The third occurence of dc1 -- is it governed by the first or second
> assignment?
First, due to the left to right ordering of parens.
Rob
--
,'/:. Dr Robert Sanderson ([log in to unmask])
,'-/::::. http://www.o-r-g.org/~azaroth/
,'--/::(@)::. Special Collections and Archives, extension 3142
,'---/::::::::::. Nebmedes: telnet: nebmedes.o-r-g.org 7777
____/:::::::::::::. WWW: http://nebmedes.o-r-g.org:8000/
I L L U M I N A T I
|