diff options
Diffstat (limited to 'src/org/semanticweb/karma2/model/cqparser/ConjunctiveQueryLexer.java')
| -rw-r--r-- | src/org/semanticweb/karma2/model/cqparser/ConjunctiveQueryLexer.java | 814 |
1 files changed, 0 insertions, 814 deletions
diff --git a/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQueryLexer.java b/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQueryLexer.java deleted file mode 100644 index a97d7a4..0000000 --- a/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQueryLexer.java +++ /dev/null | |||
| @@ -1,814 +0,0 @@ | |||
| 1 | // $ANTLR 3.5 /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g 2013-12-13 14:41:34 | ||
| 2 | |||
| 3 | package org.semanticweb.karma2.model.cqparser; | ||
| 4 | |||
| 5 | |||
| 6 | import org.antlr.runtime.*; | ||
| 7 | import java.util.Stack; | ||
| 8 | import java.util.List; | ||
| 9 | import java.util.ArrayList; | ||
| 10 | |||
| 11 | @SuppressWarnings("all") | ||
| 12 | public class ConjunctiveQueryLexer extends Lexer { | ||
| 13 | public static final int EOF=-1; | ||
| 14 | public static final int T__20=20; | ||
| 15 | public static final int T__21=21; | ||
| 16 | public static final int T__22=22; | ||
| 17 | public static final int T__23=23; | ||
| 18 | public static final int T__24=24; | ||
| 19 | public static final int T__25=25; | ||
| 20 | public static final int T__26=26; | ||
| 21 | public static final int T__27=27; | ||
| 22 | public static final int T__28=28; | ||
| 23 | public static final int T__29=29; | ||
| 24 | public static final int ATOM=4; | ||
| 25 | public static final int ATOM_LIST=5; | ||
| 26 | public static final int CONSTANT=6; | ||
| 27 | public static final int EXPRESSION=7; | ||
| 28 | public static final int HEADATOM=8; | ||
| 29 | public static final int ID=9; | ||
| 30 | public static final int PREDICATE=10; | ||
| 31 | public static final int PREFIX=11; | ||
| 32 | public static final int PREFIX_LIST=12; | ||
| 33 | public static final int RULE=13; | ||
| 34 | public static final int SCONSTANT=14; | ||
| 35 | public static final int STRING=15; | ||
| 36 | public static final int TERM_LIST=16; | ||
| 37 | public static final int URLSTRING=17; | ||
| 38 | public static final int VARIABLE=18; | ||
| 39 | public static final int WS=19; | ||
| 40 | |||
| 41 | // delegates | ||
| 42 | // delegators | ||
| 43 | public Lexer[] getDelegates() { | ||
| 44 | return new Lexer[] {}; | ||
| 45 | } | ||
| 46 | |||
| 47 | public ConjunctiveQueryLexer() {} | ||
| 48 | public ConjunctiveQueryLexer(CharStream input) { | ||
| 49 | this(input, new RecognizerSharedState()); | ||
| 50 | } | ||
| 51 | public ConjunctiveQueryLexer(CharStream input, RecognizerSharedState state) { | ||
| 52 | super(input,state); | ||
| 53 | } | ||
| 54 | @Override public String getGrammarFileName() { return "/home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g"; } | ||
| 55 | |||
| 56 | // $ANTLR start "T__20" | ||
| 57 | public final void mT__20() throws RecognitionException { | ||
| 58 | try { | ||
| 59 | int _type = T__20; | ||
| 60 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 61 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:11:7: ( '(' ) | ||
| 62 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:11:9: '(' | ||
| 63 | { | ||
| 64 | match('('); | ||
| 65 | } | ||
| 66 | |||
| 67 | state.type = _type; | ||
| 68 | state.channel = _channel; | ||
| 69 | } | ||
| 70 | finally { | ||
| 71 | // do for sure before leaving | ||
| 72 | } | ||
| 73 | } | ||
| 74 | // $ANTLR end "T__20" | ||
| 75 | |||
| 76 | // $ANTLR start "T__21" | ||
| 77 | public final void mT__21() throws RecognitionException { | ||
| 78 | try { | ||
| 79 | int _type = T__21; | ||
| 80 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 81 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:12:7: ( ')' ) | ||
| 82 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:12:9: ')' | ||
| 83 | { | ||
| 84 | match(')'); | ||
| 85 | } | ||
| 86 | |||
| 87 | state.type = _type; | ||
| 88 | state.channel = _channel; | ||
| 89 | } | ||
| 90 | finally { | ||
| 91 | // do for sure before leaving | ||
| 92 | } | ||
| 93 | } | ||
| 94 | // $ANTLR end "T__21" | ||
| 95 | |||
| 96 | // $ANTLR start "T__22" | ||
| 97 | public final void mT__22() throws RecognitionException { | ||
| 98 | try { | ||
| 99 | int _type = T__22; | ||
| 100 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 101 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:13:7: ( ',' ) | ||
| 102 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:13:9: ',' | ||
| 103 | { | ||
| 104 | match(','); | ||
| 105 | } | ||
| 106 | |||
| 107 | state.type = _type; | ||
| 108 | state.channel = _channel; | ||
| 109 | } | ||
| 110 | finally { | ||
| 111 | // do for sure before leaving | ||
| 112 | } | ||
| 113 | } | ||
| 114 | // $ANTLR end "T__22" | ||
| 115 | |||
| 116 | // $ANTLR start "T__23" | ||
| 117 | public final void mT__23() throws RecognitionException { | ||
| 118 | try { | ||
| 119 | int _type = T__23; | ||
| 120 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 121 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:14:7: ( '.' ) | ||
| 122 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:14:9: '.' | ||
| 123 | { | ||
| 124 | match('.'); | ||
| 125 | } | ||
| 126 | |||
| 127 | state.type = _type; | ||
| 128 | state.channel = _channel; | ||
| 129 | } | ||
| 130 | finally { | ||
| 131 | // do for sure before leaving | ||
| 132 | } | ||
| 133 | } | ||
| 134 | // $ANTLR end "T__23" | ||
| 135 | |||
| 136 | // $ANTLR start "T__24" | ||
| 137 | public final void mT__24() throws RecognitionException { | ||
| 138 | try { | ||
| 139 | int _type = T__24; | ||
| 140 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 141 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:15:7: ( ':' ) | ||
| 142 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:15:9: ':' | ||
| 143 | { | ||
| 144 | match(':'); | ||
| 145 | } | ||
| 146 | |||
| 147 | state.type = _type; | ||
| 148 | state.channel = _channel; | ||
| 149 | } | ||
| 150 | finally { | ||
| 151 | // do for sure before leaving | ||
| 152 | } | ||
| 153 | } | ||
| 154 | // $ANTLR end "T__24" | ||
| 155 | |||
| 156 | // $ANTLR start "T__25" | ||
| 157 | public final void mT__25() throws RecognitionException { | ||
| 158 | try { | ||
| 159 | int _type = T__25; | ||
| 160 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 161 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:16:7: ( '<' ) | ||
| 162 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:16:9: '<' | ||
| 163 | { | ||
| 164 | match('<'); | ||
| 165 | } | ||
| 166 | |||
| 167 | state.type = _type; | ||
| 168 | state.channel = _channel; | ||
| 169 | } | ||
| 170 | finally { | ||
| 171 | // do for sure before leaving | ||
| 172 | } | ||
| 173 | } | ||
| 174 | // $ANTLR end "T__25" | ||
| 175 | |||
| 176 | // $ANTLR start "T__26" | ||
| 177 | public final void mT__26() throws RecognitionException { | ||
| 178 | try { | ||
| 179 | int _type = T__26; | ||
| 180 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 181 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:17:7: ( '<-' ) | ||
| 182 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:17:9: '<-' | ||
| 183 | { | ||
| 184 | match("<-"); | ||
| 185 | |||
| 186 | } | ||
| 187 | |||
| 188 | state.type = _type; | ||
| 189 | state.channel = _channel; | ||
| 190 | } | ||
| 191 | finally { | ||
| 192 | // do for sure before leaving | ||
| 193 | } | ||
| 194 | } | ||
| 195 | // $ANTLR end "T__26" | ||
| 196 | |||
| 197 | // $ANTLR start "T__27" | ||
| 198 | public final void mT__27() throws RecognitionException { | ||
| 199 | try { | ||
| 200 | int _type = T__27; | ||
| 201 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 202 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:18:7: ( '>' ) | ||
| 203 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:18:9: '>' | ||
| 204 | { | ||
| 205 | match('>'); | ||
| 206 | } | ||
| 207 | |||
| 208 | state.type = _type; | ||
| 209 | state.channel = _channel; | ||
| 210 | } | ||
| 211 | finally { | ||
| 212 | // do for sure before leaving | ||
| 213 | } | ||
| 214 | } | ||
| 215 | // $ANTLR end "T__27" | ||
| 216 | |||
| 217 | // $ANTLR start "T__28" | ||
| 218 | public final void mT__28() throws RecognitionException { | ||
| 219 | try { | ||
| 220 | int _type = T__28; | ||
| 221 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 222 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:19:7: ( '?' ) | ||
| 223 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:19:9: '?' | ||
| 224 | { | ||
| 225 | match('?'); | ||
| 226 | } | ||
| 227 | |||
| 228 | state.type = _type; | ||
| 229 | state.channel = _channel; | ||
| 230 | } | ||
| 231 | finally { | ||
| 232 | // do for sure before leaving | ||
| 233 | } | ||
| 234 | } | ||
| 235 | // $ANTLR end "T__28" | ||
| 236 | |||
| 237 | // $ANTLR start "T__29" | ||
| 238 | public final void mT__29() throws RecognitionException { | ||
| 239 | try { | ||
| 240 | int _type = T__29; | ||
| 241 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 242 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:20:7: ( 'prefix' ) | ||
| 243 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:20:9: 'prefix' | ||
| 244 | { | ||
| 245 | match("prefix"); | ||
| 246 | |||
| 247 | } | ||
| 248 | |||
| 249 | state.type = _type; | ||
| 250 | state.channel = _channel; | ||
| 251 | } | ||
| 252 | finally { | ||
| 253 | // do for sure before leaving | ||
| 254 | } | ||
| 255 | } | ||
| 256 | // $ANTLR end "T__29" | ||
| 257 | |||
| 258 | // $ANTLR start "URLSTRING" | ||
| 259 | public final void mURLSTRING() throws RecognitionException { | ||
| 260 | try { | ||
| 261 | int _type = URLSTRING; | ||
| 262 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 263 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:138:11: ( ( 'http://' | 'file:/' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '/' | '#' | '.' | '-' | '~' | '_' )+ ) | ||
| 264 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:138:13: ( 'http://' | 'file:/' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '/' | '#' | '.' | '-' | '~' | '_' )+ | ||
| 265 | { | ||
| 266 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:138:13: ( 'http://' | 'file:/' ) | ||
| 267 | int alt1=2; | ||
| 268 | int LA1_0 = input.LA(1); | ||
| 269 | if ( (LA1_0=='h') ) { | ||
| 270 | alt1=1; | ||
| 271 | } | ||
| 272 | else if ( (LA1_0=='f') ) { | ||
| 273 | alt1=2; | ||
| 274 | } | ||
| 275 | |||
| 276 | else { | ||
| 277 | NoViableAltException nvae = | ||
| 278 | new NoViableAltException("", 1, 0, input); | ||
| 279 | throw nvae; | ||
| 280 | } | ||
| 281 | |||
| 282 | switch (alt1) { | ||
| 283 | case 1 : | ||
| 284 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:138:14: 'http://' | ||
| 285 | { | ||
| 286 | match("http://"); | ||
| 287 | |||
| 288 | } | ||
| 289 | break; | ||
| 290 | case 2 : | ||
| 291 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:138:24: 'file:/' | ||
| 292 | { | ||
| 293 | match("file:/"); | ||
| 294 | |||
| 295 | } | ||
| 296 | break; | ||
| 297 | |||
| 298 | } | ||
| 299 | |||
| 300 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:138:34: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '/' | '#' | '.' | '-' | '~' | '_' )+ | ||
| 301 | int cnt2=0; | ||
| 302 | loop2: | ||
| 303 | while (true) { | ||
| 304 | int alt2=2; | ||
| 305 | int LA2_0 = input.LA(1); | ||
| 306 | if ( (LA2_0=='#'||(LA2_0 >= '-' && LA2_0 <= '9')||(LA2_0 >= 'A' && LA2_0 <= 'Z')||LA2_0=='_'||(LA2_0 >= 'a' && LA2_0 <= 'z')||LA2_0=='~') ) { | ||
| 307 | alt2=1; | ||
| 308 | } | ||
| 309 | |||
| 310 | switch (alt2) { | ||
| 311 | case 1 : | ||
| 312 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g: | ||
| 313 | { | ||
| 314 | if ( input.LA(1)=='#'||(input.LA(1) >= '-' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z')||input.LA(1)=='~' ) { | ||
| 315 | input.consume(); | ||
| 316 | } | ||
| 317 | else { | ||
| 318 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
| 319 | recover(mse); | ||
| 320 | throw mse; | ||
| 321 | } | ||
| 322 | } | ||
| 323 | break; | ||
| 324 | |||
| 325 | default : | ||
| 326 | if ( cnt2 >= 1 ) break loop2; | ||
| 327 | EarlyExitException eee = new EarlyExitException(2, input); | ||
| 328 | throw eee; | ||
| 329 | } | ||
| 330 | cnt2++; | ||
| 331 | } | ||
| 332 | |||
| 333 | } | ||
| 334 | |||
| 335 | state.type = _type; | ||
| 336 | state.channel = _channel; | ||
| 337 | } | ||
| 338 | finally { | ||
| 339 | // do for sure before leaving | ||
| 340 | } | ||
| 341 | } | ||
| 342 | // $ANTLR end "URLSTRING" | ||
| 343 | |||
| 344 | // $ANTLR start "STRING" | ||
| 345 | public final void mSTRING() throws RecognitionException { | ||
| 346 | try { | ||
| 347 | int _type = STRING; | ||
| 348 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 349 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:139:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '/' | '#' | '.' | '-' | '_' )+ ) | ||
| 350 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:139:13: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '/' | '#' | '.' | '-' | '_' )+ | ||
| 351 | { | ||
| 352 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:139:13: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '/' | '#' | '.' | '-' | '_' )+ | ||
| 353 | int cnt3=0; | ||
| 354 | loop3: | ||
| 355 | while (true) { | ||
| 356 | int alt3=2; | ||
| 357 | int LA3_0 = input.LA(1); | ||
| 358 | if ( (LA3_0=='#'||(LA3_0 >= '-' && LA3_0 <= '9')||(LA3_0 >= 'A' && LA3_0 <= 'Z')||LA3_0=='_'||(LA3_0 >= 'a' && LA3_0 <= 'z')) ) { | ||
| 359 | alt3=1; | ||
| 360 | } | ||
| 361 | |||
| 362 | switch (alt3) { | ||
| 363 | case 1 : | ||
| 364 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g: | ||
| 365 | { | ||
| 366 | if ( input.LA(1)=='#'||(input.LA(1) >= '-' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) { | ||
| 367 | input.consume(); | ||
| 368 | } | ||
| 369 | else { | ||
| 370 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
| 371 | recover(mse); | ||
| 372 | throw mse; | ||
| 373 | } | ||
| 374 | } | ||
| 375 | break; | ||
| 376 | |||
| 377 | default : | ||
| 378 | if ( cnt3 >= 1 ) break loop3; | ||
| 379 | EarlyExitException eee = new EarlyExitException(3, input); | ||
| 380 | throw eee; | ||
| 381 | } | ||
| 382 | cnt3++; | ||
| 383 | } | ||
| 384 | |||
| 385 | } | ||
| 386 | |||
| 387 | state.type = _type; | ||
| 388 | state.channel = _channel; | ||
| 389 | } | ||
| 390 | finally { | ||
| 391 | // do for sure before leaving | ||
| 392 | } | ||
| 393 | } | ||
| 394 | // $ANTLR end "STRING" | ||
| 395 | |||
| 396 | // $ANTLR start "WS" | ||
| 397 | public final void mWS() throws RecognitionException { | ||
| 398 | try { | ||
| 399 | int _type = WS; | ||
| 400 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
| 401 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:140:5: ( ( ' ' | '\\n' | '\\r' )+ ) | ||
| 402 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:140:7: ( ' ' | '\\n' | '\\r' )+ | ||
| 403 | { | ||
| 404 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:140:7: ( ' ' | '\\n' | '\\r' )+ | ||
| 405 | int cnt4=0; | ||
| 406 | loop4: | ||
| 407 | while (true) { | ||
| 408 | int alt4=2; | ||
| 409 | int LA4_0 = input.LA(1); | ||
| 410 | if ( (LA4_0=='\n'||LA4_0=='\r'||LA4_0==' ') ) { | ||
| 411 | alt4=1; | ||
| 412 | } | ||
| 413 | |||
| 414 | switch (alt4) { | ||
| 415 | case 1 : | ||
| 416 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g: | ||
| 417 | { | ||
| 418 | if ( input.LA(1)=='\n'||input.LA(1)=='\r'||input.LA(1)==' ' ) { | ||
| 419 | input.consume(); | ||
| 420 | } | ||
| 421 | else { | ||
| 422 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
| 423 | recover(mse); | ||
| 424 | throw mse; | ||
| 425 | } | ||
| 426 | } | ||
| 427 | break; | ||
| 428 | |||
| 429 | default : | ||
| 430 | if ( cnt4 >= 1 ) break loop4; | ||
| 431 | EarlyExitException eee = new EarlyExitException(4, input); | ||
| 432 | throw eee; | ||
| 433 | } | ||
| 434 | cnt4++; | ||
| 435 | } | ||
| 436 | |||
| 437 | _channel=HIDDEN; | ||
| 438 | } | ||
| 439 | |||
| 440 | state.type = _type; | ||
| 441 | state.channel = _channel; | ||
| 442 | } | ||
| 443 | finally { | ||
| 444 | // do for sure before leaving | ||
| 445 | } | ||
| 446 | } | ||
| 447 | // $ANTLR end "WS" | ||
| 448 | |||
| 449 | @Override | ||
| 450 | public void mTokens() throws RecognitionException { | ||
| 451 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:8: ( T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | URLSTRING | STRING | WS ) | ||
| 452 | int alt5=13; | ||
| 453 | switch ( input.LA(1) ) { | ||
| 454 | case '(': | ||
| 455 | { | ||
| 456 | alt5=1; | ||
| 457 | } | ||
| 458 | break; | ||
| 459 | case ')': | ||
| 460 | { | ||
| 461 | alt5=2; | ||
| 462 | } | ||
| 463 | break; | ||
| 464 | case ',': | ||
| 465 | { | ||
| 466 | alt5=3; | ||
| 467 | } | ||
| 468 | break; | ||
| 469 | case '.': | ||
| 470 | { | ||
| 471 | int LA5_4 = input.LA(2); | ||
| 472 | if ( (LA5_4=='#'||(LA5_4 >= '-' && LA5_4 <= '9')||(LA5_4 >= 'A' && LA5_4 <= 'Z')||LA5_4=='_'||(LA5_4 >= 'a' && LA5_4 <= 'z')) ) { | ||
| 473 | alt5=12; | ||
| 474 | } | ||
| 475 | |||
| 476 | else { | ||
| 477 | alt5=4; | ||
| 478 | } | ||
| 479 | |||
| 480 | } | ||
| 481 | break; | ||
| 482 | case ':': | ||
| 483 | { | ||
| 484 | alt5=5; | ||
| 485 | } | ||
| 486 | break; | ||
| 487 | case '<': | ||
| 488 | { | ||
| 489 | int LA5_6 = input.LA(2); | ||
| 490 | if ( (LA5_6=='-') ) { | ||
| 491 | alt5=7; | ||
| 492 | } | ||
| 493 | |||
| 494 | else { | ||
| 495 | alt5=6; | ||
| 496 | } | ||
| 497 | |||
| 498 | } | ||
| 499 | break; | ||
| 500 | case '>': | ||
| 501 | { | ||
| 502 | alt5=8; | ||
| 503 | } | ||
| 504 | break; | ||
| 505 | case '?': | ||
| 506 | { | ||
| 507 | alt5=9; | ||
| 508 | } | ||
| 509 | break; | ||
| 510 | case 'p': | ||
| 511 | { | ||
| 512 | int LA5_9 = input.LA(2); | ||
| 513 | if ( (LA5_9=='r') ) { | ||
| 514 | int LA5_17 = input.LA(3); | ||
| 515 | if ( (LA5_17=='e') ) { | ||
| 516 | int LA5_20 = input.LA(4); | ||
| 517 | if ( (LA5_20=='f') ) { | ||
| 518 | int LA5_23 = input.LA(5); | ||
| 519 | if ( (LA5_23=='i') ) { | ||
| 520 | int LA5_26 = input.LA(6); | ||
| 521 | if ( (LA5_26=='x') ) { | ||
| 522 | int LA5_28 = input.LA(7); | ||
| 523 | if ( (LA5_28=='#'||(LA5_28 >= '-' && LA5_28 <= '9')||(LA5_28 >= 'A' && LA5_28 <= 'Z')||LA5_28=='_'||(LA5_28 >= 'a' && LA5_28 <= 'z')) ) { | ||
| 524 | alt5=12; | ||
| 525 | } | ||
| 526 | |||
| 527 | else { | ||
| 528 | alt5=10; | ||
| 529 | } | ||
| 530 | |||
| 531 | } | ||
| 532 | |||
| 533 | else { | ||
| 534 | alt5=12; | ||
| 535 | } | ||
| 536 | |||
| 537 | } | ||
| 538 | |||
| 539 | else { | ||
| 540 | alt5=12; | ||
| 541 | } | ||
| 542 | |||
| 543 | } | ||
| 544 | |||
| 545 | else { | ||
| 546 | alt5=12; | ||
| 547 | } | ||
| 548 | |||
| 549 | } | ||
| 550 | |||
| 551 | else { | ||
| 552 | alt5=12; | ||
| 553 | } | ||
| 554 | |||
| 555 | } | ||
| 556 | |||
| 557 | else { | ||
| 558 | alt5=12; | ||
| 559 | } | ||
| 560 | |||
| 561 | } | ||
| 562 | break; | ||
| 563 | case 'h': | ||
| 564 | { | ||
| 565 | int LA5_10 = input.LA(2); | ||
| 566 | if ( (LA5_10=='t') ) { | ||
| 567 | int LA5_18 = input.LA(3); | ||
| 568 | if ( (LA5_18=='t') ) { | ||
| 569 | int LA5_21 = input.LA(4); | ||
| 570 | if ( (LA5_21=='p') ) { | ||
| 571 | int LA5_24 = input.LA(5); | ||
| 572 | if ( (LA5_24==':') ) { | ||
| 573 | alt5=11; | ||
| 574 | } | ||
| 575 | |||
| 576 | else { | ||
| 577 | alt5=12; | ||
| 578 | } | ||
| 579 | |||
| 580 | } | ||
| 581 | |||
| 582 | else { | ||
| 583 | alt5=12; | ||
| 584 | } | ||
| 585 | |||
| 586 | } | ||
| 587 | |||
| 588 | else { | ||
| 589 | alt5=12; | ||
| 590 | } | ||
| 591 | |||
| 592 | } | ||
| 593 | |||
| 594 | else { | ||
| 595 | alt5=12; | ||
| 596 | } | ||
| 597 | |||
| 598 | } | ||
| 599 | break; | ||
| 600 | case 'f': | ||
| 601 | { | ||
| 602 | int LA5_11 = input.LA(2); | ||
| 603 | if ( (LA5_11=='i') ) { | ||
| 604 | int LA5_19 = input.LA(3); | ||
| 605 | if ( (LA5_19=='l') ) { | ||
| 606 | int LA5_22 = input.LA(4); | ||
| 607 | if ( (LA5_22=='e') ) { | ||
| 608 | int LA5_25 = input.LA(5); | ||
| 609 | if ( (LA5_25==':') ) { | ||
| 610 | alt5=11; | ||
| 611 | } | ||
| 612 | |||
| 613 | else { | ||
| 614 | alt5=12; | ||
| 615 | } | ||
| 616 | |||
| 617 | } | ||
| 618 | |||
| 619 | else { | ||
| 620 | alt5=12; | ||
| 621 | } | ||
| 622 | |||
| 623 | } | ||
| 624 | |||
| 625 | else { | ||
| 626 | alt5=12; | ||
| 627 | } | ||
| 628 | |||
| 629 | } | ||
| 630 | |||
| 631 | else { | ||
| 632 | alt5=12; | ||
| 633 | } | ||
| 634 | |||
| 635 | } | ||
| 636 | break; | ||
| 637 | case '#': | ||
| 638 | case '-': | ||
| 639 | case '/': | ||
| 640 | case '0': | ||
| 641 | case '1': | ||
| 642 | case '2': | ||
| 643 | case '3': | ||
| 644 | case '4': | ||
| 645 | case '5': | ||
| 646 | case '6': | ||
| 647 | case '7': | ||
| 648 | case '8': | ||
| 649 | case '9': | ||
| 650 | case 'A': | ||
| 651 | case 'B': | ||
| 652 | case 'C': | ||
| 653 | case 'D': | ||
| 654 | case 'E': | ||
| 655 | case 'F': | ||
| 656 | case 'G': | ||
| 657 | case 'H': | ||
| 658 | case 'I': | ||
| 659 | case 'J': | ||
| 660 | case 'K': | ||
| 661 | case 'L': | ||
| 662 | case 'M': | ||
| 663 | case 'N': | ||
| 664 | case 'O': | ||
| 665 | case 'P': | ||
| 666 | case 'Q': | ||
| 667 | case 'R': | ||
| 668 | case 'S': | ||
| 669 | case 'T': | ||
| 670 | case 'U': | ||
| 671 | case 'V': | ||
| 672 | case 'W': | ||
| 673 | case 'X': | ||
| 674 | case 'Y': | ||
| 675 | case 'Z': | ||
| 676 | case '_': | ||
| 677 | case 'a': | ||
| 678 | case 'b': | ||
| 679 | case 'c': | ||
| 680 | case 'd': | ||
| 681 | case 'e': | ||
| 682 | case 'g': | ||
| 683 | case 'i': | ||
| 684 | case 'j': | ||
| 685 | case 'k': | ||
| 686 | case 'l': | ||
| 687 | case 'm': | ||
| 688 | case 'n': | ||
| 689 | case 'o': | ||
| 690 | case 'q': | ||
| 691 | case 'r': | ||
| 692 | case 's': | ||
| 693 | case 't': | ||
| 694 | case 'u': | ||
| 695 | case 'v': | ||
| 696 | case 'w': | ||
| 697 | case 'x': | ||
| 698 | case 'y': | ||
| 699 | case 'z': | ||
| 700 | { | ||
| 701 | alt5=12; | ||
| 702 | } | ||
| 703 | break; | ||
| 704 | case '\n': | ||
| 705 | case '\r': | ||
| 706 | case ' ': | ||
| 707 | { | ||
| 708 | alt5=13; | ||
| 709 | } | ||
| 710 | break; | ||
| 711 | default: | ||
| 712 | NoViableAltException nvae = | ||
| 713 | new NoViableAltException("", 5, 0, input); | ||
| 714 | throw nvae; | ||
| 715 | } | ||
| 716 | switch (alt5) { | ||
| 717 | case 1 : | ||
| 718 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:10: T__20 | ||
| 719 | { | ||
| 720 | mT__20(); | ||
| 721 | |||
| 722 | } | ||
| 723 | break; | ||
| 724 | case 2 : | ||
| 725 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:16: T__21 | ||
| 726 | { | ||
| 727 | mT__21(); | ||
| 728 | |||
| 729 | } | ||
| 730 | break; | ||
| 731 | case 3 : | ||
| 732 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:22: T__22 | ||
| 733 | { | ||
| 734 | mT__22(); | ||
| 735 | |||
| 736 | } | ||
| 737 | break; | ||
| 738 | case 4 : | ||
| 739 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:28: T__23 | ||
| 740 | { | ||
| 741 | mT__23(); | ||
| 742 | |||
| 743 | } | ||
| 744 | break; | ||
| 745 | case 5 : | ||
| 746 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:34: T__24 | ||
| 747 | { | ||
| 748 | mT__24(); | ||
| 749 | |||
| 750 | } | ||
| 751 | break; | ||
| 752 | case 6 : | ||
| 753 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:40: T__25 | ||
| 754 | { | ||
| 755 | mT__25(); | ||
| 756 | |||
| 757 | } | ||
| 758 | break; | ||
| 759 | case 7 : | ||
| 760 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:46: T__26 | ||
| 761 | { | ||
| 762 | mT__26(); | ||
| 763 | |||
| 764 | } | ||
| 765 | break; | ||
| 766 | case 8 : | ||
| 767 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:52: T__27 | ||
| 768 | { | ||
| 769 | mT__27(); | ||
| 770 | |||
| 771 | } | ||
| 772 | break; | ||
| 773 | case 9 : | ||
| 774 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:58: T__28 | ||
| 775 | { | ||
| 776 | mT__28(); | ||
| 777 | |||
| 778 | } | ||
| 779 | break; | ||
| 780 | case 10 : | ||
| 781 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:64: T__29 | ||
| 782 | { | ||
| 783 | mT__29(); | ||
| 784 | |||
| 785 | } | ||
| 786 | break; | ||
| 787 | case 11 : | ||
| 788 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:70: URLSTRING | ||
| 789 | { | ||
| 790 | mURLSTRING(); | ||
| 791 | |||
| 792 | } | ||
| 793 | break; | ||
| 794 | case 12 : | ||
| 795 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:80: STRING | ||
| 796 | { | ||
| 797 | mSTRING(); | ||
| 798 | |||
| 799 | } | ||
| 800 | break; | ||
| 801 | case 13 : | ||
| 802 | // /home/yzhou/workspace/KARMA/src/org/semanticweb/karma2/model/cqparser/ConjunctiveQuery.g:1:87: WS | ||
| 803 | { | ||
| 804 | mWS(); | ||
| 805 | |||
| 806 | } | ||
| 807 | break; | ||
| 808 | |||
| 809 | } | ||
| 810 | } | ||
| 811 | |||
| 812 | |||
| 813 | |||
| 814 | } | ||
