--- (IN PROGRESS)
+Allow any CQL relation (not just all,any,exact,scr).
+
Fixes for OCLC UI ASN.1 to make it work with SilverPlatter targets
that features the same UI.
-/* $Id: cql.y,v 1.5 2003-06-04 09:44:05 adam Exp $
+/* $Id: cql.y,v 1.6 2003-09-04 18:13:39 adam Exp $
Copyright (C) 2002-2003
Index Data Aps
%}
%pure_parser
-%token TERM AND OR NOT PROX EXACT ALL ANY GE LE NE SCR
+%token TERM AND OR NOT PROX GE LE NE
%expect 8
%%
}
;
+/* unary NOT search TERM here .. */
+
boolean:
AND | OR | NOT | PROX proxqualifiers {
$$ = $1;
| GE
| LE
| NE
-| EXACT
-| ALL
-| ANY
-| SCR
+| TERM
;
index:
| AND
| OR
| NOT
-| EXACT
-| ALL
-| ANY
| PROX
;
-/* $Id: lexer.c,v 1.4 2003-04-14 16:52:10 adam Exp $
+/* $Id: lexer.c,v 1.5 2003-09-04 18:13:39 adam Exp $
Copyright (C) 2002-2003
Index Data Aps
return OR;
if (!strcmp(lval->buf, "not"))
return NOT;
- if (!strcmp(lval->buf, "exact"))
- return EXACT;
- if (!strcmp(lval->buf, "all"))
- return ALL;
if (!strncmp(lval->buf, "prox", 4))
return PROX;
- if (!strcmp(lval->buf, "any"))
- return ANY;
- if (!strcmp(lval->buf, "scr"))
- return SCR;
}
return TERM;
}