From: mike Date: Tue, 3 Jul 2007 13:30:42 +0000 (+0000) Subject: Add "sortby" keyword. X-Git-Tag: v1.5~58 X-Git-Url: http://git.indexdata.com/?p=cql-java-moved-to-github.git;a=commitdiff_plain;h=d2a5744a801ffac836655b9c8c6322a962257be0 Add "sortby" keyword. --- diff --git a/src/org/z3950/zing/cql/CQLLexer.java b/src/org/z3950/zing/cql/CQLLexer.java index 01cc05d..5df3822 100644 --- a/src/org/z3950/zing/cql/CQLLexer.java +++ b/src/org/z3950/zing/cql/CQLLexer.java @@ -1,4 +1,4 @@ -// $Id: CQLLexer.java,v 1.13 2007-06-29 15:38:56 mike Exp $ +// $Id: CQLLexer.java,v 1.14 2007-07-03 13:30:42 mike Exp $ package org.z3950.zing.cql; import java.io.StreamTokenizer; @@ -24,6 +24,7 @@ class CQLLexer extends StreamTokenizer { static int TT_OR = 1005; // The "or" boolean static int TT_NOT = 1006; // The "not" boolean static int TT_PROX = 1007; // The "prox" boolean + static int TT_SORTBY = 1008; // The "sortby" operator // Support for keywords. It would be nice to compile this linear // list into a Hashtable, but it's hard to store ints as hash @@ -44,6 +45,7 @@ class CQLLexer extends StreamTokenizer { new Keyword(TT_OR, "or"), new Keyword(TT_NOT, "not"), new Keyword(TT_PROX, "prox"), + new Keyword(TT_SORTBY, "sortby"), }; // For halfDecentPushBack() and the code at the top of nextToken()