X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fcqlstd.y;fp=src%2Fcqlstd.y;h=0000000000000000000000000000000000000000;hb=2d82f5e172577a498d19396b210ca28553683310;hp=2daec40de8dcba869616aec22b0cd11e878b5ec9;hpb=2b4785b39a2bbb4affd77fb9e24aaabc0b2dd069;p=yaz-moved-to-github.git diff --git a/src/cqlstd.y b/src/cqlstd.y deleted file mode 100644 index 2daec40..0000000 --- a/src/cqlstd.y +++ /dev/null @@ -1,60 +0,0 @@ -/* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data - * See the file LICENSE for details. - */ -/* - YACC CQL grammar taken verbatim from the official spec. We don't - use that in YAZ but I don't know of a better place to put it. - */ -%term GE LE NE AND OR NOT PROX CHARSTRING1 CHARSTRING2 SORTBY - -%% -sortedQuery : prefixAssignment sortedQuery - | scopedClause - | scopedClause SORTBY sortSpec; - -sortSpec : sortSpec singleSpec | singleSpec; -singleSpec : index modifierList | index ; - -cqlQuery : prefixAssignment cqlQuery | scopedClause; - -prefixAssignment : '>' prefix '=' uri | '>' uri; - -scopedClause : scopedClause booleanGroup searchClause | searchClause ; - -booleanGroup: boolean | boolean modifierList; - -boolean : AND | OR | NOT | PROX ; - -searchClause : '(' cqlQuery ')' - | index relation searchClause - | searchTerm - ; - -relation : comparitor | comparitor modifierList; - -comparitor : comparitorSymbol | namedComparitor ; - -comparitorSymbol : '=' | '>' | '<' | GE | LE | NE; - -namedComparitor : identifier; - -modifierList : modifierList modifier | modifier; - -modifier : '/' modifierName - | '/' modifierName comparitorSymbol modifierValue - ; - - -prefix : term; -uri : term; -modifierName: term; -modifierValue: term; -searchTerm: term; -index: term; - -term: identifier | AND | OR | NOT | PROX | SORTBY ; - -identifier: CHARSTRING1 | CHARSTRING2; - -%%