X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fcql.y;h=fa4a181be78f76f5447a4301f4c75d5b22d10bc8;hb=dbc40ad16aa82379d2884e106d79c7d83312667a;hp=128dc8744b8d56446d75eafbb1c956ef5d9ccf9e;hpb=2715f6522ca62ab5dbc886c21ed18945743216f0;p=yaz-moved-to-github.git diff --git a/src/cql.y b/src/cql.y index 128dc87..fa4a181 100644 --- a/src/cql.y +++ b/src/cql.y @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ /* bison parser for CQL grammar. */ @@ -162,10 +162,10 @@ searchTerm extraTerms { ; extraTerms: -extraTerms SIMPLE_STRING { +SIMPLE_STRING extraTerms { struct cql_node *st = cql_node_mk_sc(((CQL_parser) parm)->nmem, - /* index */ 0, /* rel */ 0, $2.buf); - st->u.st.extra_terms = $1.cql; + /* index */ 0, /* rel */ 0, $1.buf); + st->u.st.extra_terms = $2.cql; $$.cql = st; } |