Add CQL 1.2 / 2.0 YACC grammars
[yaz-moved-to-github.git] / src / cqlstd.y
diff --git a/src/cqlstd.y b/src/cqlstd.y
deleted file mode 100644 (file)
index 2daec40..0000000
+++ /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;
-
-%%