On Fri, Nov 28, 2003 at 12:00:42PM +1100, Alan Kent wrote:
> Here is another go using a more EBNF like grammar....
>
> cqlQuery = scopedSearchClause ( boolean scopedSearchClause )*
> scopedSearchClause = ( '>' [ prefix '=' ] uri )* searchClause
I think I got the above wrong. The prefixes should be for all
the boolean operators, not just for the first. That is, I think
it should have been
cqlQuery = ( '>' [ prefix '=' ] uri )* scopedSearchClause
scopedSearchClause = searchClause ( boolean searchClause )*
Also note, I am not stressed if '<>', '>=' and '<=' are made tokens
(this is more normal). I used the grammar to join them, but it does
mean in theory
a > = 3
is valid.
Alan
|