X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Forg%2Fz3950%2Fzing%2Fcql%2FCQLLexer.java;h=5df3822798370ab4a959e4a32c5178beb0206205;hb=d2a5744a801ffac836655b9c8c6322a962257be0;hp=01cc05dd1ae1d16c53216f9277b8cfa18b13724a;hpb=c6ea17b35591bac083db07f3437cdc46edd87f29;p=cql-java-moved-to-github.git 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()