-// $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
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
// $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
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
\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
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
}\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
}\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
// $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
// $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
// $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
// $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
// $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
\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
// $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
}\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
// $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
\r
switch (alt5) {\r
case 1 :\r
- // LensQuery.g:132:24: StringChar\r
+ // LensQuery.g:129:24: StringChar\r
{\r
mStringChar(); \r
\r
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
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
}\r
switch (alt6) {\r
case 1 :\r
- // LensQuery.g:137:10: '-'\r
+ // LensQuery.g:134:10: '-'\r
{\r
match('-'); \r
\r
\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
}\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
\r
switch (alt7) {\r
case 1 :\r
- // LensQuery.g:137:31: Digit\r
+ // LensQuery.g:134:31: Digit\r
{\r
mDigit(); \r
\r
// $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
\r
switch (alt9) {\r
case 1 :\r
- // LensQuery.g:138:20: Digit\r
+ // LensQuery.g:135:20: Digit\r
{\r
mDigit(); \r
\r
// $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
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
\r
}\r
\r
- // LensQuery.g:139:40: ( Digit )+\r
+ // LensQuery.g:136:40: ( Digit )+\r
int cnt11=0;\r
loop11:\r
do {\r
\r
switch (alt11) {\r
case 1 :\r
- // LensQuery.g:139:40: Digit\r
+ // LensQuery.g:136:40: Digit\r
{\r
mDigit(); \r
\r
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
}\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
}\r
switch (alt12) {\r
case 1 :\r
- // LensQuery.g:140:23: Exp\r
+ // LensQuery.g:137:23: Exp\r
{\r
mExp(); \r
\r
}\r
break;\r
case 2 :\r
- // LensQuery.g:140:30: Exp\r
+ // LensQuery.g:137:30: Exp\r
{\r
mExp(); \r
\r
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
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
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
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
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
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
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
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
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
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
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
\r
switch (alt14) {\r
case 1 :\r
- // LensQuery.g:155:38: .\r
+ // LensQuery.g:152:38: .\r
{\r
matchAny(); \r
\r
} 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
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
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
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
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
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
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
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
// $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
// $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
// $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
// $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
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
\r
switch (alt16) {\r
case 1 :\r
- // LensQuery.g:177:8: QNameChar\r
+ // LensQuery.g:174:8: QNameChar\r
{\r
mQNameChar(); \r
\r
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
\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
\r
switch (alt17) {\r
case 1 :\r
- // LensQuery.g:177:24: QNameChar\r
+ // LensQuery.g:174:24: QNameChar\r
{\r
mQNameChar(); \r
\r
// $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
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
\r
switch (alt19) {\r
case 1 :\r
- // LensQuery.g:183:14: WhiteSpace\r
+ // LensQuery.g:180:14: WhiteSpace\r
{\r
mWhiteSpace(); \r
\r