From 67217ccb1fdbaf3d931c6869bcd84397b1a78ac2 Mon Sep 17 00:00:00 2001 From: mike Date: Wed, 27 Jun 2007 23:36:19 +0000 Subject: [PATCH] New --- spec/bnf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 spec/bnf diff --git a/spec/bnf b/spec/bnf new file mode 100644 index 0000000..616fa07 --- /dev/null +++ b/spec/bnf @@ -0,0 +1,21 @@ +$Id: bnf,v 1.1 2007-06-27 23:36:19 mike Exp $ + +Sort of derived from http://www.loc.gov/standards/sru/cql/ + +cqlQuery ::= prefixAssignment cqlQuery | scopedClause +prefixAssignment ::= '>' prefix '=' uri | '>' uri +scopedClause ::= scopedClause booleanGroup searchClause | searchClause +booleanGroup ::= boolean [modifierList] +boolean ::= 'and' | 'or' | 'not' | 'prox' +searchClause ::= '(' cqlQuery ')' + | index relation searchTerm + | searchTerm +relation ::= comparitor [modifierList] +comparitor ::= comparitorSymbol | namedComparitor +comparitorSymbol ::= '=' | '>' | '<' | '>=' | '<=' | '<>' +namedComparitor ::= identifier +modifierList ::= modifierList modifier | modifier +modifier ::= '/' modifierName [comparitorSymbol modifierValue] +prefix, uri, modifierName, modifierValue, searchTerm, index ::= term +term ::= identifier | 'and' | 'or' | 'not' | 'prox' +identifier ::= charString1 | charString2 -- 1.7.10.4