OSDN Git Service

add LogWriter interface to enable switch log format
[xerial/xerial-core.git] / src / main / java / org / xerial / lens / relation / query / impl / LensQueryLexer.java
index 0964d84..943b0d9 100644 (file)
@@ -1,4 +1,4 @@
-// $ANTLR 3.1.3 Mar 17, 2009 19:23:44 LensQuery.g 2009-09-30 22:59:27\r
+// $ANTLR 3.1.3 Mar 17, 2009 19:23:44 LensQuery.g 2009-10-13 14:02:52\r
 \r
 /*--------------------------------------------------------------------------\r
  *  Copyright 2009 Taro L. Saito\r
@@ -33,59 +33,58 @@ import java.util.List;
 import java.util.ArrayList;\r
 \r
 public class LensQueryLexer extends Lexer {\r
-    public static final int INDEX=15;\r
     public static final int PATTERNMATCH=9;\r
-    public static final int Match=40;\r
-    public static final int Regex=41;\r
-    public static final int Digit=19;\r
-    public static final int Frac=28;\r
-    public static final int HexDigit=21;\r
+    public static final int Match=39;\r
+    public static final int Regex=40;\r
+    public static final int Digit=18;\r
+    public static final int Frac=27;\r
+    public static final int HexDigit=20;\r
     public static final int QUERY=4;\r
     public static final int ALIAS=11;\r
     public static final int VALUE=14;\r
-    public static final int Letter=20;\r
-    public static final int Comma=43;\r
-    public static final int Dot=42;\r
-    public static final int EscapeSequence=23;\r
-    public static final int Integer=27;\r
-    public static final int WhiteSpace=52;\r
+    public static final int Letter=19;\r
+    public static final int Comma=42;\r
+    public static final int Dot=41;\r
+    public static final int EscapeSequence=22;\r
+    public static final int Integer=26;\r
+    public static final int WhiteSpace=51;\r
     public static final int OPERATOR=7;\r
-    public static final int False=32;\r
-    public static final int Colon=44;\r
-    public static final int LineComment=17;\r
+    public static final int False=31;\r
+    public static final int LineComment=16;\r
+    public static final int Colon=43;\r
     public static final int NODEVALUE=12;\r
-    public static final int As=45;\r
-    public static final int SafeFirstLetter=50;\r
-    public static final int Null=33;\r
-    public static final int Star=48;\r
-    public static final int Eq=38;\r
-    public static final int Exp=29;\r
-    public static final int QNameChar=53;\r
+    public static final int As=44;\r
+    public static final int SafeFirstLetter=49;\r
+    public static final int Null=32;\r
+    public static final int Star=47;\r
+    public static final int Eq=37;\r
+    public static final int Exp=28;\r
+    public static final int QNameChar=52;\r
     public static final int RELATION=5;\r
-    public static final int Gt=35;\r
-    public static final int RParen=47;\r
-    public static final int UnicodeChar=22;\r
-    public static final int StringChar=24;\r
-    public static final int True=31;\r
+    public static final int Gt=34;\r
+    public static final int RParen=46;\r
+    public static final int UnicodeChar=21;\r
+    public static final int StringChar=23;\r
+    public static final int True=30;\r
     public static final int OPERAND=8;\r
-    public static final int LineBreak=18;\r
-    public static final int LParen=46;\r
-    public static final int String=26;\r
-    public static final int SafeLetter=51;\r
-    public static final int LineBreakChar=16;\r
+    public static final int LineBreak=17;\r
+    public static final int LParen=45;\r
+    public static final int String=25;\r
+    public static final int SafeLetter=50;\r
+    public static final int LineBreakChar=15;\r
     public static final int COMPARE=6;\r
-    public static final int QName=54;\r
-    public static final int Geq=37;\r
+    public static final int QName=53;\r
+    public static final int Geq=36;\r
     public static final int EOF=-1;\r
     public static final int NODE=10;\r
-    public static final int Neq=39;\r
-    public static final int StringChar_s=25;\r
-    public static final int UnsafeUnicodeChar=49;\r
-    public static final int Double=30;\r
-    public static final int Lt=34;\r
+    public static final int Neq=38;\r
+    public static final int StringChar_s=24;\r
+    public static final int UnsafeUnicodeChar=48;\r
+    public static final int Double=29;\r
+    public static final int Lt=33;\r
     public static final int NAME=13;\r
-    public static final int Leq=36;\r
-    public static final int WhiteSpaces=55;\r
+    public static final int Leq=35;\r
+    public static final int WhiteSpaces=54;\r
 \r
 \r
 \r
@@ -106,7 +105,7 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "LineBreakChar"\r
     public final void mLineBreakChar() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:116:23: ( '\\n' | '\\r' )\r
+            // LensQuery.g:113:23: ( '\\n' | '\\r' )\r
             // LensQuery.g:\r
             {\r
             if ( input.LA(1)=='\n'||input.LA(1)=='\r' ) {\r
@@ -132,11 +131,11 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = LineComment;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:117:12: ( '#' (~ ( LineBreakChar ) )* )\r
-            // LensQuery.g:117:14: '#' (~ ( LineBreakChar ) )*\r
+            // LensQuery.g:114:12: ( '#' (~ ( LineBreakChar ) )* )\r
+            // LensQuery.g:114:14: '#' (~ ( LineBreakChar ) )*\r
             {\r
             match('#'); \r
-            // LensQuery.g:117:18: (~ ( LineBreakChar ) )*\r
+            // LensQuery.g:114:18: (~ ( LineBreakChar ) )*\r
             loop1:\r
             do {\r
                 int alt1=2;\r
@@ -149,7 +148,7 @@ public class LensQueryLexer extends Lexer {
 \r
                 switch (alt1) {\r
                case 1 :\r
-                   // LensQuery.g:117:18: ~ ( LineBreakChar )\r
+                   // LensQuery.g:114:18: ~ ( LineBreakChar )\r
                    {\r
                    if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {\r
                        input.consume();\r
@@ -186,10 +185,10 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = LineBreak;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:120:10: ( ( '\\r' '\\n' | '\\r' | '\\n' ) )\r
-            // LensQuery.g:120:12: ( '\\r' '\\n' | '\\r' | '\\n' )\r
+            // LensQuery.g:117:10: ( ( '\\r' '\\n' | '\\r' | '\\n' ) )\r
+            // LensQuery.g:117:12: ( '\\r' '\\n' | '\\r' | '\\n' )\r
             {\r
-            // LensQuery.g:120:12: ( '\\r' '\\n' | '\\r' | '\\n' )\r
+            // LensQuery.g:117:12: ( '\\r' '\\n' | '\\r' | '\\n' )\r
             int alt2=3;\r
             int LA2_0 = input.LA(1);\r
 \r
@@ -213,7 +212,7 @@ public class LensQueryLexer extends Lexer {
             }\r
             switch (alt2) {\r
                 case 1 :\r
-                    // LensQuery.g:120:13: '\\r' '\\n'\r
+                    // LensQuery.g:117:13: '\\r' '\\n'\r
                     {\r
                     match('\r'); \r
                     match('\n'); \r
@@ -221,14 +220,14 @@ public class LensQueryLexer extends Lexer {
                     }\r
                     break;\r
                 case 2 :\r
-                    // LensQuery.g:120:25: '\\r'\r
+                    // LensQuery.g:117:25: '\\r'\r
                     {\r
                     match('\r'); \r
 \r
                     }\r
                     break;\r
                 case 3 :\r
-                    // LensQuery.g:120:32: '\\n'\r
+                    // LensQuery.g:117:32: '\\n'\r
                     {\r
                     match('\n'); \r
 \r
@@ -252,8 +251,8 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "Digit"\r
     public final void mDigit() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:123:15: ( '0' .. '9' )\r
-            // LensQuery.g:123:17: '0' .. '9'\r
+            // LensQuery.g:120:15: ( '0' .. '9' )\r
+            // LensQuery.g:120:17: '0' .. '9'\r
             {\r
             matchRange('0','9'); \r
 \r
@@ -268,7 +267,7 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "Letter"\r
     public final void mLetter() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:124:16: ( 'A' .. 'F' | 'a' .. 'f' )\r
+            // LensQuery.g:121:16: ( 'A' .. 'F' | 'a' .. 'f' )\r
             // LensQuery.g:\r
             {\r
             if ( (input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {\r
@@ -292,7 +291,7 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "HexDigit"\r
     public final void mHexDigit() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:125:18: ( Digit | Letter )\r
+            // LensQuery.g:122:18: ( Digit | Letter )\r
             // LensQuery.g:\r
             {\r
             if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {\r
@@ -316,8 +315,8 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "UnicodeChar"\r
     public final void mUnicodeChar() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:126:21: (~ ( '\"' | '\\\\' ) )\r
-            // LensQuery.g:126:23: ~ ( '\"' | '\\\\' )\r
+            // LensQuery.g:123:21: (~ ( '\"' | '\\\\' ) )\r
+            // LensQuery.g:123:23: ~ ( '\"' | '\\\\' )\r
             {\r
             if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {\r
                 input.consume();\r
@@ -340,11 +339,11 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "EscapeSequence"\r
     public final void mEscapeSequence() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:128:3: ( '\\\\' ( '\\\"' | '\\\\' | '/' | 'b' | 'f' | 'n' | 'r' | 't' | 'u' HexDigit HexDigit HexDigit HexDigit ) )\r
-            // LensQuery.g:128:5: '\\\\' ( '\\\"' | '\\\\' | '/' | 'b' | 'f' | 'n' | 'r' | 't' | 'u' HexDigit HexDigit HexDigit HexDigit )\r
+            // LensQuery.g:125:3: ( '\\\\' ( '\\\"' | '\\\\' | '/' | 'b' | 'f' | 'n' | 'r' | 't' | 'u' HexDigit HexDigit HexDigit HexDigit ) )\r
+            // LensQuery.g:125:5: '\\\\' ( '\\\"' | '\\\\' | '/' | 'b' | 'f' | 'n' | 'r' | 't' | 'u' HexDigit HexDigit HexDigit HexDigit )\r
             {\r
             match('\\'); \r
-            // LensQuery.g:128:10: ( '\\\"' | '\\\\' | '/' | 'b' | 'f' | 'n' | 'r' | 't' | 'u' HexDigit HexDigit HexDigit HexDigit )\r
+            // LensQuery.g:125:10: ( '\\\"' | '\\\\' | '/' | 'b' | 'f' | 'n' | 'r' | 't' | 'u' HexDigit HexDigit HexDigit HexDigit )\r
             int alt3=9;\r
             switch ( input.LA(1) ) {\r
             case '\"':\r
@@ -401,63 +400,63 @@ public class LensQueryLexer extends Lexer {
 \r
             switch (alt3) {\r
                 case 1 :\r
-                    // LensQuery.g:128:11: '\\\"'\r
+                    // LensQuery.g:125:11: '\\\"'\r
                     {\r
                     match('\"'); \r
 \r
                     }\r
                     break;\r
                 case 2 :\r
-                    // LensQuery.g:128:18: '\\\\'\r
+                    // LensQuery.g:125:18: '\\\\'\r
                     {\r
                     match('\\'); \r
 \r
                     }\r
                     break;\r
                 case 3 :\r
-                    // LensQuery.g:128:25: '/'\r
+                    // LensQuery.g:125:25: '/'\r
                     {\r
                     match('/'); \r
 \r
                     }\r
                     break;\r
                 case 4 :\r
-                    // LensQuery.g:128:31: 'b'\r
+                    // LensQuery.g:125:31: 'b'\r
                     {\r
                     match('b'); \r
 \r
                     }\r
                     break;\r
                 case 5 :\r
-                    // LensQuery.g:128:37: 'f'\r
+                    // LensQuery.g:125:37: 'f'\r
                     {\r
                     match('f'); \r
 \r
                     }\r
                     break;\r
                 case 6 :\r
-                    // LensQuery.g:128:43: 'n'\r
+                    // LensQuery.g:125:43: 'n'\r
                     {\r
                     match('n'); \r
 \r
                     }\r
                     break;\r
                 case 7 :\r
-                    // LensQuery.g:128:49: 'r'\r
+                    // LensQuery.g:125:49: 'r'\r
                     {\r
                     match('r'); \r
 \r
                     }\r
                     break;\r
                 case 8 :\r
-                    // LensQuery.g:128:55: 't'\r
+                    // LensQuery.g:125:55: 't'\r
                     {\r
                     match('t'); \r
 \r
                     }\r
                     break;\r
                 case 9 :\r
-                    // LensQuery.g:128:61: 'u' HexDigit HexDigit HexDigit HexDigit\r
+                    // LensQuery.g:125:61: 'u' HexDigit HexDigit HexDigit HexDigit\r
                     {\r
                     match('u'); \r
                     mHexDigit(); \r
@@ -482,7 +481,7 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "StringChar"\r
     public final void mStringChar() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:131:21: ( UnicodeChar | EscapeSequence )\r
+            // LensQuery.g:128:21: ( UnicodeChar | EscapeSequence )\r
             int alt4=2;\r
             int LA4_0 = input.LA(1);\r
 \r
@@ -500,14 +499,14 @@ public class LensQueryLexer extends Lexer {
             }\r
             switch (alt4) {\r
                 case 1 :\r
-                    // LensQuery.g:131:24: UnicodeChar\r
+                    // LensQuery.g:128:24: UnicodeChar\r
                     {\r
                     mUnicodeChar(); \r
 \r
                     }\r
                     break;\r
                 case 2 :\r
-                    // LensQuery.g:131:38: EscapeSequence\r
+                    // LensQuery.g:128:38: EscapeSequence\r
                     {\r
                     mEscapeSequence(); \r
 \r
@@ -524,10 +523,10 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "StringChar_s"\r
     public final void mStringChar_s() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:132:22: ( ( StringChar )* )\r
-            // LensQuery.g:132:24: ( StringChar )*\r
+            // LensQuery.g:129:22: ( ( StringChar )* )\r
+            // LensQuery.g:129:24: ( StringChar )*\r
             {\r
-            // LensQuery.g:132:24: ( StringChar )*\r
+            // LensQuery.g:129:24: ( StringChar )*\r
             loop5:\r
             do {\r
                 int alt5=2;\r
@@ -540,7 +539,7 @@ public class LensQueryLexer extends Lexer {
 \r
                 switch (alt5) {\r
                case 1 :\r
-                   // LensQuery.g:132:24: StringChar\r
+                   // LensQuery.g:129:24: StringChar\r
                    {\r
                    mStringChar(); \r
 \r
@@ -568,8 +567,8 @@ public class LensQueryLexer extends Lexer {
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
             Token s=null;\r
 \r
-            // LensQuery.g:134:7: ( '\"' s= StringChar_s '\"' )\r
-            // LensQuery.g:134:9: '\"' s= StringChar_s '\"'\r
+            // LensQuery.g:131:7: ( '\"' s= StringChar_s '\"' )\r
+            // LensQuery.g:131:9: '\"' s= StringChar_s '\"'\r
             {\r
             match('\"'); \r
             int sStart244 = getCharIndex();\r
@@ -593,10 +592,10 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Integer;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:137:8: ( ( '-' )? ( '0' | '1' .. '9' ( Digit )* ) )\r
-            // LensQuery.g:137:10: ( '-' )? ( '0' | '1' .. '9' ( Digit )* )\r
+            // LensQuery.g:134:8: ( ( '-' )? ( '0' | '1' .. '9' ( Digit )* ) )\r
+            // LensQuery.g:134:10: ( '-' )? ( '0' | '1' .. '9' ( Digit )* )\r
             {\r
-            // LensQuery.g:137:10: ( '-' )?\r
+            // LensQuery.g:134:10: ( '-' )?\r
             int alt6=2;\r
             int LA6_0 = input.LA(1);\r
 \r
@@ -605,7 +604,7 @@ public class LensQueryLexer extends Lexer {
             }\r
             switch (alt6) {\r
                 case 1 :\r
-                    // LensQuery.g:137:10: '-'\r
+                    // LensQuery.g:134:10: '-'\r
                     {\r
                     match('-'); \r
 \r
@@ -614,7 +613,7 @@ public class LensQueryLexer extends Lexer {
 \r
             }\r
 \r
-            // LensQuery.g:137:15: ( '0' | '1' .. '9' ( Digit )* )\r
+            // LensQuery.g:134:15: ( '0' | '1' .. '9' ( Digit )* )\r
             int alt8=2;\r
             int LA8_0 = input.LA(1);\r
 \r
@@ -632,17 +631,17 @@ public class LensQueryLexer extends Lexer {
             }\r
             switch (alt8) {\r
                 case 1 :\r
-                    // LensQuery.g:137:16: '0'\r
+                    // LensQuery.g:134:16: '0'\r
                     {\r
                     match('0'); \r
 \r
                     }\r
                     break;\r
                 case 2 :\r
-                    // LensQuery.g:137:22: '1' .. '9' ( Digit )*\r
+                    // LensQuery.g:134:22: '1' .. '9' ( Digit )*\r
                     {\r
                     matchRange('1','9'); \r
-                    // LensQuery.g:137:31: ( Digit )*\r
+                    // LensQuery.g:134:31: ( Digit )*\r
                     loop7:\r
                     do {\r
                         int alt7=2;\r
@@ -655,7 +654,7 @@ public class LensQueryLexer extends Lexer {
 \r
                         switch (alt7) {\r
                        case 1 :\r
-                           // LensQuery.g:137:31: Digit\r
+                           // LensQuery.g:134:31: Digit\r
                            {\r
                            mDigit(); \r
 \r
@@ -687,11 +686,11 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "Frac"\r
     public final void mFrac() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:138:14: ( '.' ( Digit )+ )\r
-            // LensQuery.g:138:16: '.' ( Digit )+\r
+            // LensQuery.g:135:14: ( '.' ( Digit )+ )\r
+            // LensQuery.g:135:16: '.' ( Digit )+\r
             {\r
             match('.'); \r
-            // LensQuery.g:138:20: ( Digit )+\r
+            // LensQuery.g:135:20: ( Digit )+\r
             int cnt9=0;\r
             loop9:\r
             do {\r
@@ -705,7 +704,7 @@ public class LensQueryLexer extends Lexer {
 \r
                 switch (alt9) {\r
                case 1 :\r
-                   // LensQuery.g:138:20: Digit\r
+                   // LensQuery.g:135:20: Digit\r
                    {\r
                    mDigit(); \r
 \r
@@ -733,8 +732,8 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "Exp"\r
     public final void mExp() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:139:13: ( ( 'e' | 'E' ) ( '+' | '-' )? ( Digit )+ )\r
-            // LensQuery.g:139:15: ( 'e' | 'E' ) ( '+' | '-' )? ( Digit )+\r
+            // LensQuery.g:136:13: ( ( 'e' | 'E' ) ( '+' | '-' )? ( Digit )+ )\r
+            // LensQuery.g:136:15: ( 'e' | 'E' ) ( '+' | '-' )? ( Digit )+\r
             {\r
             if ( input.LA(1)=='E'||input.LA(1)=='e' ) {\r
                 input.consume();\r
@@ -745,7 +744,7 @@ public class LensQueryLexer extends Lexer {
                 recover(mse);\r
                 throw mse;}\r
 \r
-            // LensQuery.g:139:27: ( '+' | '-' )?\r
+            // LensQuery.g:136:27: ( '+' | '-' )?\r
             int alt10=2;\r
             int LA10_0 = input.LA(1);\r
 \r
@@ -771,7 +770,7 @@ public class LensQueryLexer extends Lexer {
 \r
             }\r
 \r
-            // LensQuery.g:139:40: ( Digit )+\r
+            // LensQuery.g:136:40: ( Digit )+\r
             int cnt11=0;\r
             loop11:\r
             do {\r
@@ -785,7 +784,7 @@ public class LensQueryLexer extends Lexer {
 \r
                 switch (alt11) {\r
                case 1 :\r
-                   // LensQuery.g:139:40: Digit\r
+                   // LensQuery.g:136:40: Digit\r
                    {\r
                    mDigit(); \r
 \r
@@ -815,11 +814,11 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Double;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:140:7: ( Integer ( Frac ( Exp )? | Exp ) )\r
-            // LensQuery.g:140:9: Integer ( Frac ( Exp )? | Exp )\r
+            // LensQuery.g:137:7: ( Integer ( Frac ( Exp )? | Exp ) )\r
+            // LensQuery.g:137:9: Integer ( Frac ( Exp )? | Exp )\r
             {\r
             mInteger(); \r
-            // LensQuery.g:140:17: ( Frac ( Exp )? | Exp )\r
+            // LensQuery.g:137:17: ( Frac ( Exp )? | Exp )\r
             int alt13=2;\r
             int LA13_0 = input.LA(1);\r
 \r
@@ -837,10 +836,10 @@ public class LensQueryLexer extends Lexer {
             }\r
             switch (alt13) {\r
                 case 1 :\r
-                    // LensQuery.g:140:18: Frac ( Exp )?\r
+                    // LensQuery.g:137:18: Frac ( Exp )?\r
                     {\r
                     mFrac(); \r
-                    // LensQuery.g:140:23: ( Exp )?\r
+                    // LensQuery.g:137:23: ( Exp )?\r
                     int alt12=2;\r
                     int LA12_0 = input.LA(1);\r
 \r
@@ -849,7 +848,7 @@ public class LensQueryLexer extends Lexer {
                     }\r
                     switch (alt12) {\r
                         case 1 :\r
-                            // LensQuery.g:140:23: Exp\r
+                            // LensQuery.g:137:23: Exp\r
                             {\r
                             mExp(); \r
 \r
@@ -862,7 +861,7 @@ public class LensQueryLexer extends Lexer {
                     }\r
                     break;\r
                 case 2 :\r
-                    // LensQuery.g:140:30: Exp\r
+                    // LensQuery.g:137:30: Exp\r
                     {\r
                     mExp(); \r
 \r
@@ -887,8 +886,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = True;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:142:5: ( 'true' )\r
-            // LensQuery.g:142:7: 'true'\r
+            // LensQuery.g:139:5: ( 'true' )\r
+            // LensQuery.g:139:7: 'true'\r
             {\r
             match("true"); \r
 \r
@@ -908,8 +907,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = False;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:143:6: ( 'false' )\r
-            // LensQuery.g:143:8: 'false'\r
+            // LensQuery.g:140:6: ( 'false' )\r
+            // LensQuery.g:140:8: 'false'\r
             {\r
             match("false"); \r
 \r
@@ -929,8 +928,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Null;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:144:5: ( 'null' )\r
-            // LensQuery.g:144:7: 'null'\r
+            // LensQuery.g:141:5: ( 'null' )\r
+            // LensQuery.g:141:7: 'null'\r
             {\r
             match("null"); \r
 \r
@@ -950,8 +949,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Lt;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:148:3: ( '<' )\r
-            // LensQuery.g:148:5: '<'\r
+            // LensQuery.g:145:3: ( '<' )\r
+            // LensQuery.g:145:5: '<'\r
             {\r
             match('<'); \r
 \r
@@ -970,8 +969,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Gt;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:149:3: ( '>' )\r
-            // LensQuery.g:149:5: '>'\r
+            // LensQuery.g:146:3: ( '>' )\r
+            // LensQuery.g:146:5: '>'\r
             {\r
             match('>'); \r
 \r
@@ -990,8 +989,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Leq;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:150:4: ( '<=' )\r
-            // LensQuery.g:150:6: '<='\r
+            // LensQuery.g:147:4: ( '<=' )\r
+            // LensQuery.g:147:6: '<='\r
             {\r
             match("<="); \r
 \r
@@ -1011,8 +1010,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Geq;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:151:4: ( '>=' )\r
-            // LensQuery.g:151:6: '>='\r
+            // LensQuery.g:148:4: ( '>=' )\r
+            // LensQuery.g:148:6: '>='\r
             {\r
             match(">="); \r
 \r
@@ -1032,8 +1031,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Eq;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:152:3: ( '=' )\r
-            // LensQuery.g:152:5: '='\r
+            // LensQuery.g:149:3: ( '=' )\r
+            // LensQuery.g:149:5: '='\r
             {\r
             match('='); \r
 \r
@@ -1052,8 +1051,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Neq;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:153:4: ( '!=' )\r
-            // LensQuery.g:153:6: '!='\r
+            // LensQuery.g:150:4: ( '!=' )\r
+            // LensQuery.g:150:6: '!='\r
             {\r
             match("!="); \r
 \r
@@ -1073,8 +1072,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Match;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:154:6: ( '~=' )\r
-            // LensQuery.g:154:8: '~='\r
+            // LensQuery.g:151:6: ( '~=' )\r
+            // LensQuery.g:151:8: '~='\r
             {\r
             match("~="); \r
 \r
@@ -1094,11 +1093,11 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Regex;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:155:6: ( '/' ( options {greedy=false; } : . )* '/' ( 'a' .. 'z' | 'A' .. 'Z' )* )\r
-            // LensQuery.g:155:8: '/' ( options {greedy=false; } : . )* '/' ( 'a' .. 'z' | 'A' .. 'Z' )*\r
+            // LensQuery.g:152:6: ( '/' ( options {greedy=false; } : . )* '/' ( 'a' .. 'z' | 'A' .. 'Z' )* )\r
+            // LensQuery.g:152:8: '/' ( options {greedy=false; } : . )* '/' ( 'a' .. 'z' | 'A' .. 'Z' )*\r
             {\r
             match('/'); \r
-            // LensQuery.g:155:13: ( options {greedy=false; } : . )*\r
+            // LensQuery.g:152:13: ( options {greedy=false; } : . )*\r
             loop14:\r
             do {\r
                 int alt14=2;\r
@@ -1114,7 +1113,7 @@ public class LensQueryLexer extends Lexer {
 \r
                 switch (alt14) {\r
                case 1 :\r
-                   // LensQuery.g:155:38: .\r
+                   // LensQuery.g:152:38: .\r
                    {\r
                    matchAny(); \r
 \r
@@ -1127,7 +1126,7 @@ public class LensQueryLexer extends Lexer {
             } while (true);\r
 \r
             match('/'); \r
-            // LensQuery.g:155:46: ( 'a' .. 'z' | 'A' .. 'Z' )*\r
+            // LensQuery.g:152:46: ( 'a' .. 'z' | 'A' .. 'Z' )*\r
             loop15:\r
             do {\r
                 int alt15=2;\r
@@ -1176,8 +1175,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Dot;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:158:4: ( '.' )\r
-            // LensQuery.g:158:6: '.'\r
+            // LensQuery.g:155:4: ( '.' )\r
+            // LensQuery.g:155:6: '.'\r
             {\r
             match('.'); \r
 \r
@@ -1196,8 +1195,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Comma;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:159:6: ( ',' )\r
-            // LensQuery.g:159:8: ','\r
+            // LensQuery.g:156:6: ( ',' )\r
+            // LensQuery.g:156:8: ','\r
             {\r
             match(','); \r
 \r
@@ -1216,8 +1215,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Colon;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:160:6: ( ':' )\r
-            // LensQuery.g:160:8: ':'\r
+            // LensQuery.g:157:6: ( ':' )\r
+            // LensQuery.g:157:8: ':'\r
             {\r
             match(':'); \r
 \r
@@ -1236,8 +1235,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = As;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:162:3: ( 'as' )\r
-            // LensQuery.g:162:5: 'as'\r
+            // LensQuery.g:159:3: ( 'as' )\r
+            // LensQuery.g:159:5: 'as'\r
             {\r
             match("as"); \r
 \r
@@ -1257,8 +1256,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = LParen;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:164:7: ( '(' )\r
-            // LensQuery.g:164:9: '('\r
+            // LensQuery.g:161:7: ( '(' )\r
+            // LensQuery.g:161:9: '('\r
             {\r
             match('('); \r
 \r
@@ -1277,8 +1276,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = RParen;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:165:7: ( ')' )\r
-            // LensQuery.g:165:9: ')'\r
+            // LensQuery.g:162:7: ( ')' )\r
+            // LensQuery.g:162:9: ')'\r
             {\r
             match(')'); \r
 \r
@@ -1297,8 +1296,8 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = Star;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:167:5: ( '*' )\r
-            // LensQuery.g:167:7: '*'\r
+            // LensQuery.g:164:5: ( '*' )\r
+            // LensQuery.g:164:7: '*'\r
             {\r
             match('*'); \r
 \r
@@ -1315,7 +1314,7 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "UnsafeUnicodeChar"\r
     public final void mUnsafeUnicodeChar() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:170:18: ( '(' | ')' | '[' | ']' | '{' | '}' | ',' | ':' | '#' | '<' | '>' | '|' | '*' | '\\'' | '\"' | '@' | '%' | '\\\\' | '.' | '-' )\r
+            // LensQuery.g:167:18: ( '(' | ')' | '[' | ']' | '{' | '}' | ',' | ':' | '#' | '<' | '>' | '|' | '*' | '\\'' | '\"' | '@' | '%' | '\\\\' | '.' | '-' )\r
             // LensQuery.g:\r
             {\r
             if ( (input.LA(1)>='\"' && input.LA(1)<='#')||input.LA(1)=='%'||(input.LA(1)>='\'' && input.LA(1)<='*')||(input.LA(1)>=',' && input.LA(1)<='.')||input.LA(1)==':'||input.LA(1)=='<'||input.LA(1)=='>'||input.LA(1)=='@'||(input.LA(1)>='[' && input.LA(1)<=']')||(input.LA(1)>='{' && input.LA(1)<='}') ) {\r
@@ -1339,7 +1338,7 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "SafeFirstLetter"\r
     public final void mSafeFirstLetter() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:172:25: ( 'A' .. 'Z' | 'a' .. 'z' )\r
+            // LensQuery.g:169:25: ( 'A' .. 'Z' | 'a' .. 'z' )\r
             // LensQuery.g:\r
             {\r
             if ( (input.LA(1)>='A' && input.LA(1)<='Z')||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r
@@ -1363,7 +1362,7 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "SafeLetter"\r
     public final void mSafeLetter() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:173:20: ( SafeFirstLetter | '0' .. '9' | '-' | '_' )\r
+            // LensQuery.g:170:20: ( SafeFirstLetter | '0' .. '9' | '-' | '_' )\r
             // LensQuery.g:\r
             {\r
             if ( input.LA(1)=='-'||(input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {\r
@@ -1387,8 +1386,8 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "QNameChar"\r
     public final void mQNameChar() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:176:19: (~ ( LineBreakChar | UnsafeUnicodeChar | WhiteSpace ) )\r
-            // LensQuery.g:176:21: ~ ( LineBreakChar | UnsafeUnicodeChar | WhiteSpace )\r
+            // LensQuery.g:173:19: (~ ( LineBreakChar | UnsafeUnicodeChar | WhiteSpace ) )\r
+            // LensQuery.g:173:21: ~ ( LineBreakChar | UnsafeUnicodeChar | WhiteSpace )\r
             {\r
             if ( (input.LA(1)>='\u0000' && input.LA(1)<='\b')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\u001F')||input.LA(1)=='!'||input.LA(1)=='$'||input.LA(1)=='&'||input.LA(1)=='+'||(input.LA(1)>='/' && input.LA(1)<='9')||input.LA(1)==';'||input.LA(1)=='='||input.LA(1)=='?'||(input.LA(1)>='A' && input.LA(1)<='Z')||(input.LA(1)>='^' && input.LA(1)<='z')||(input.LA(1)>='~' && input.LA(1)<='\uFFFF') ) {\r
                 input.consume();\r
@@ -1413,10 +1412,10 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = QName;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:177:6: ( ( QNameChar )+ ( Dot ( QNameChar )+ )* )\r
-            // LensQuery.g:177:8: ( QNameChar )+ ( Dot ( QNameChar )+ )*\r
+            // LensQuery.g:174:6: ( ( QNameChar )+ ( Dot ( QNameChar )+ )* )\r
+            // LensQuery.g:174:8: ( QNameChar )+ ( Dot ( QNameChar )+ )*\r
             {\r
-            // LensQuery.g:177:8: ( QNameChar )+\r
+            // LensQuery.g:174:8: ( QNameChar )+\r
             int cnt16=0;\r
             loop16:\r
             do {\r
@@ -1430,7 +1429,7 @@ public class LensQueryLexer extends Lexer {
 \r
                 switch (alt16) {\r
                case 1 :\r
-                   // LensQuery.g:177:8: QNameChar\r
+                   // LensQuery.g:174:8: QNameChar\r
                    {\r
                    mQNameChar(); \r
 \r
@@ -1446,7 +1445,7 @@ public class LensQueryLexer extends Lexer {
                 cnt16++;\r
             } while (true);\r
 \r
-            // LensQuery.g:177:19: ( Dot ( QNameChar )+ )*\r
+            // LensQuery.g:174:19: ( Dot ( QNameChar )+ )*\r
             loop18:\r
             do {\r
                 int alt18=2;\r
@@ -1459,10 +1458,10 @@ public class LensQueryLexer extends Lexer {
 \r
                 switch (alt18) {\r
                case 1 :\r
-                   // LensQuery.g:177:20: Dot ( QNameChar )+\r
+                   // LensQuery.g:174:20: Dot ( QNameChar )+\r
                    {\r
                    mDot(); \r
-                   // LensQuery.g:177:24: ( QNameChar )+\r
+                   // LensQuery.g:174:24: ( QNameChar )+\r
                    int cnt17=0;\r
                    loop17:\r
                    do {\r
@@ -1476,7 +1475,7 @@ public class LensQueryLexer extends Lexer {
 \r
                        switch (alt17) {\r
                        case 1 :\r
-                           // LensQuery.g:177:24: QNameChar\r
+                           // LensQuery.g:174:24: QNameChar\r
                            {\r
                            mQNameChar(); \r
 \r
@@ -1515,7 +1514,7 @@ public class LensQueryLexer extends Lexer {
     // $ANTLR start "WhiteSpace"\r
     public final void mWhiteSpace() throws RecognitionException {\r
         try {\r
-            // LensQuery.g:181:11: ( ' ' | '\\t' )\r
+            // LensQuery.g:178:11: ( ' ' | '\\t' )\r
             // LensQuery.g:\r
             {\r
             if ( input.LA(1)=='\t'||input.LA(1)==' ' ) {\r
@@ -1541,10 +1540,10 @@ public class LensQueryLexer extends Lexer {
         try {\r
             int _type = WhiteSpaces;\r
             int _channel = DEFAULT_TOKEN_CHANNEL;\r
-            // LensQuery.g:183:12: ( ( WhiteSpace )+ )\r
-            // LensQuery.g:183:14: ( WhiteSpace )+\r
+            // LensQuery.g:180:12: ( ( WhiteSpace )+ )\r
+            // LensQuery.g:180:14: ( WhiteSpace )+\r
             {\r
-            // LensQuery.g:183:14: ( WhiteSpace )+\r
+            // LensQuery.g:180:14: ( WhiteSpace )+\r
             int cnt19=0;\r
             loop19:\r
             do {\r
@@ -1558,7 +1557,7 @@ public class LensQueryLexer extends Lexer {
 \r
                 switch (alt19) {\r
                case 1 :\r
-                   // LensQuery.g:183:14: WhiteSpace\r
+                   // LensQuery.g:180:14: WhiteSpace\r
                    {\r
                    mWhiteSpace(); \r
 \r