From: Adam Dickmeiss Date: Tue, 10 May 2011 08:43:36 +0000 (+0200) Subject: CQL grammar: simplify a bit WRT relations X-Git-Tag: v4.2.0~28 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=9549afd48c2dc297f9bcd832d7ef9cea8c336f13;p=yaz-moved-to-github.git CQL grammar: simplify a bit WRT relations --- diff --git a/src/cql.y b/src/cql.y index 4021373..395389b 100644 --- a/src/cql.y +++ b/src/cql.y @@ -187,7 +187,7 @@ modifiers: modifiers '/' searchTerm $$.cql = mod; } | -modifiers '/' searchTerm mrelation searchTerm +modifiers '/' searchTerm relation_symbol searchTerm { struct cql_node *mod = cql_node_mk_sc(((CQL_parser)parm)->nmem, $3.buf, $4.buf, $5.buf); @@ -201,17 +201,9 @@ modifiers '/' searchTerm mrelation searchTerm } ; -mrelation: - '=' -| '>' -| '<' -| GE -| LE -| NE -| EXACT -; +relation: DOTTERM | relation_symbol; -relation: +relation_symbol: '=' | '>' | '<' @@ -219,7 +211,6 @@ relation: | LE | NE | EXACT -| DOTTERM ; index: