projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c52f7aa
)
CQL grammar: simplify a bit WRT relations
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 10 May 2011 08:43:36 +0000
(10:43 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 10 May 2011 08:43:36 +0000
(10:43 +0200)
src/cql.y
patch
|
blob
|
history
diff --git
a/src/cql.y
b/src/cql.y
index
4021373
..
395389b
100644
(file)
--- 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: