@@ 9632-9683 (lines=52) @@ | ||
9629 | ||
9630 | // $ANTLR start "sign" |
|
9631 | // /home/alessandro/opt/antlr/ddl3/ddl3.g:191:1: sign : ( '+' | '-' ); |
|
9632 | public final ddl3Parser.sign_return sign() throws RecognitionException { |
|
9633 | ddl3Parser.sign_return retval = new ddl3Parser.sign_return(); |
|
9634 | retval.start = input.LT(1); |
|
9635 | int sign_StartIndex = input.index(); |
|
9636 | ||
9637 | Object root_0 = null; |
|
9638 | ||
9639 | Token set363=null; |
|
9640 | ||
9641 | Object set363_tree=null; |
|
9642 | ||
9643 | try { |
|
9644 | if ( state.backtracking>0 && alreadyParsedRule(input, 49) ) { return retval; } |
|
9645 | ||
9646 | // /home/alessandro/opt/antlr/ddl3/ddl3.g:191:6: ( '+' | '-' ) |
|
9647 | // /home/alessandro/opt/antlr/ddl3/ddl3.g: |
|
9648 | { |
|
9649 | root_0 = (Object)adaptor.nil(); |
|
9650 | ||
9651 | ||
9652 | set363=input.LT(1); |
|
9653 | if ( input.LA(1)==14||input.LA(1)==16 ) { |
|
9654 | input.consume(); |
|
9655 | if ( state.backtracking==0 ) adaptor.addChild(root_0, (Object)adaptor.create(set363)); |
|
9656 | state.errorRecovery=false; |
|
9657 | state.failed=false; |
|
9658 | } |
|
9659 | else { |
|
9660 | if (state.backtracking>0) {state.failed=true; return retval;} |
|
9661 | MismatchedSetException mse = new MismatchedSetException(null,input); |
|
9662 | throw mse; |
|
9663 | } |
|
9664 | } |
|
9665 | ||
9666 | retval.stop = input.LT(-1); |
|
9667 | ||
9668 | if ( state.backtracking==0 ) { |
|
9669 | retval.tree = (Object)adaptor.rulePostProcessing(root_0); |
|
9670 | adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop); |
|
9671 | } |
|
9672 | } |
|
9673 | catch (RecognitionException re) { |
|
9674 | reportError(re); |
|
9675 | recover(input,re); |
|
9676 | retval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re); |
|
9677 | } |
|
9678 | finally { |
|
9679 | // do for sure before leaving |
|
9680 | if ( state.backtracking>0 ) { memoize(input, 49, sign_StartIndex); } |
|
9681 | ||
9682 | } |
|
9683 | return retval; |
|
9684 | } |
|
9685 | // $ANTLR end "sign" |
|
9686 | ||
@@ 7229-7280 (lines=52) @@ | ||
7226 | ||
7227 | // $ANTLR start "parameter" |
|
7228 | // /home/alessandro/opt/antlr/ddl3/ddl3.g:152:1: parameter : ( ID | '!' | '?' | 'c' | 'u' ); |
|
7229 | public final ddl3Parser.parameter_return parameter() throws RecognitionException { |
|
7230 | ddl3Parser.parameter_return retval = new ddl3Parser.parameter_return(); |
|
7231 | retval.start = input.LT(1); |
|
7232 | int parameter_StartIndex = input.index(); |
|
7233 | ||
7234 | Object root_0 = null; |
|
7235 | ||
7236 | Token set274=null; |
|
7237 | ||
7238 | Object set274_tree=null; |
|
7239 | ||
7240 | try { |
|
7241 | if ( state.backtracking>0 && alreadyParsedRule(input, 35) ) { return retval; } |
|
7242 | ||
7243 | // /home/alessandro/opt/antlr/ddl3/ddl3.g:153:2: ( ID | '!' | '?' | 'c' | 'u' ) |
|
7244 | // /home/alessandro/opt/antlr/ddl3/ddl3.g: |
|
7245 | { |
|
7246 | root_0 = (Object)adaptor.nil(); |
|
7247 | ||
7248 | ||
7249 | set274=input.LT(1); |
|
7250 | if ( input.LA(1)==ID||input.LA(1)==9||input.LA(1)==25||(input.LA(1) >= 78 && input.LA(1) <= 79) ) { |
|
7251 | input.consume(); |
|
7252 | if ( state.backtracking==0 ) adaptor.addChild(root_0, (Object)adaptor.create(set274)); |
|
7253 | state.errorRecovery=false; |
|
7254 | state.failed=false; |
|
7255 | } |
|
7256 | else { |
|
7257 | if (state.backtracking>0) {state.failed=true; return retval;} |
|
7258 | MismatchedSetException mse = new MismatchedSetException(null,input); |
|
7259 | throw mse; |
|
7260 | } |
|
7261 | } |
|
7262 | ||
7263 | retval.stop = input.LT(-1); |
|
7264 | ||
7265 | if ( state.backtracking==0 ) { |
|
7266 | retval.tree = (Object)adaptor.rulePostProcessing(root_0); |
|
7267 | adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop); |
|
7268 | } |
|
7269 | } |
|
7270 | catch (RecognitionException re) { |
|
7271 | reportError(re); |
|
7272 | recover(input,re); |
|
7273 | retval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re); |
|
7274 | } |
|
7275 | finally { |
|
7276 | // do for sure before leaving |
|
7277 | if ( state.backtracking>0 ) { memoize(input, 35, parameter_StartIndex); } |
|
7278 | ||
7279 | } |
|
7280 | return retval; |
|
7281 | } |
|
7282 | // $ANTLR end "parameter" |
|
7283 | ||
@@ 4328-4379 (lines=52) @@ | ||
4325 | ||
4326 | // $ANTLR start "enumeration_comparison_rvalue" |
|
4327 | // /home/alessandro/opt/antlr/ddl3/ddl3.g:90:1: enumeration_comparison_rvalue : ( VarID | ID ); |
|
4328 | public final ddl3Parser.enumeration_comparison_rvalue_return enumeration_comparison_rvalue() throws RecognitionException { |
|
4329 | ddl3Parser.enumeration_comparison_rvalue_return retval = new ddl3Parser.enumeration_comparison_rvalue_return(); |
|
4330 | retval.start = input.LT(1); |
|
4331 | int enumeration_comparison_rvalue_StartIndex = input.index(); |
|
4332 | ||
4333 | Object root_0 = null; |
|
4334 | ||
4335 | Token set136=null; |
|
4336 | ||
4337 | Object set136_tree=null; |
|
4338 | ||
4339 | try { |
|
4340 | if ( state.backtracking>0 && alreadyParsedRule(input, 17) ) { return retval; } |
|
4341 | ||
4342 | // /home/alessandro/opt/antlr/ddl3/ddl3.g:91:2: ( VarID | ID ) |
|
4343 | // /home/alessandro/opt/antlr/ddl3/ddl3.g: |
|
4344 | { |
|
4345 | root_0 = (Object)adaptor.nil(); |
|
4346 | ||
4347 | ||
4348 | set136=input.LT(1); |
|
4349 | if ( input.LA(1)==ID||input.LA(1)==VarID ) { |
|
4350 | input.consume(); |
|
4351 | if ( state.backtracking==0 ) adaptor.addChild(root_0, (Object)adaptor.create(set136)); |
|
4352 | state.errorRecovery=false; |
|
4353 | state.failed=false; |
|
4354 | } |
|
4355 | else { |
|
4356 | if (state.backtracking>0) {state.failed=true; return retval;} |
|
4357 | MismatchedSetException mse = new MismatchedSetException(null,input); |
|
4358 | throw mse; |
|
4359 | } |
|
4360 | } |
|
4361 | ||
4362 | retval.stop = input.LT(-1); |
|
4363 | ||
4364 | if ( state.backtracking==0 ) { |
|
4365 | retval.tree = (Object)adaptor.rulePostProcessing(root_0); |
|
4366 | adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop); |
|
4367 | } |
|
4368 | } |
|
4369 | catch (RecognitionException re) { |
|
4370 | reportError(re); |
|
4371 | recover(input,re); |
|
4372 | retval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re); |
|
4373 | } |
|
4374 | finally { |
|
4375 | // do for sure before leaving |
|
4376 | if ( state.backtracking>0 ) { memoize(input, 17, enumeration_comparison_rvalue_StartIndex); } |
|
4377 | ||
4378 | } |
|
4379 | return retval; |
|
4380 | } |
|
4381 | // $ANTLR end "enumeration_comparison_rvalue" |
|
4382 |