@@ 9571-9594 (lines=24) @@ | ||
9568 | // token list labels: |
|
9569 | // rule list labels: |
|
9570 | // wildcard labels: |
|
9571 | if ( state.backtracking==0 ) { |
|
9572 | retval.tree = root_0; |
|
9573 | RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null); |
|
9574 | ||
9575 | root_0 = (Object)adaptor.nil(); |
|
9576 | // 189:55: -> ^( 'INF' ( sign )? ) |
|
9577 | { |
|
9578 | // /home/alessandro/opt/antlr/ddl3/ddl3.g:189:57: ^( 'INF' ( sign )? ) |
|
9579 | { |
|
9580 | Object root_1 = (Object)adaptor.nil(); |
|
9581 | root_1 = (Object)adaptor.becomeRoot(stream_54.nextNode(), root_1); |
|
9582 | // /home/alessandro/opt/antlr/ddl3/ddl3.g:189:65: ( sign )? |
|
9583 | if ( stream_sign.hasNext() ) { |
|
9584 | adaptor.addChild(root_1, stream_sign.nextTree()); |
|
9585 | } |
|
9586 | stream_sign.reset(); |
|
9587 | ||
9588 | adaptor.addChild(root_0, root_1); |
|
9589 | } |
|
9590 | ||
9591 | } |
|
9592 | ||
9593 | ||
9594 | retval.tree = root_0; |
|
9595 | } |
|
9596 | ||
9597 | } |
|
@@ 9510-9533 (lines=24) @@ | ||
9507 | // token list labels: |
|
9508 | // rule list labels: |
|
9509 | // wildcard labels: |
|
9510 | if ( state.backtracking==0 ) { |
|
9511 | retval.tree = root_0; |
|
9512 | RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null); |
|
9513 | ||
9514 | root_0 = (Object)adaptor.nil(); |
|
9515 | // 189:22: -> ^( INT ( sign )? ) |
|
9516 | { |
|
9517 | // /home/alessandro/opt/antlr/ddl3/ddl3.g:189:24: ^( INT ( sign )? ) |
|
9518 | { |
|
9519 | Object root_1 = (Object)adaptor.nil(); |
|
9520 | root_1 = (Object)adaptor.becomeRoot(stream_INT.nextNode(), root_1); |
|
9521 | // /home/alessandro/opt/antlr/ddl3/ddl3.g:189:30: ( sign )? |
|
9522 | if ( stream_sign.hasNext() ) { |
|
9523 | adaptor.addChild(root_1, stream_sign.nextTree()); |
|
9524 | } |
|
9525 | stream_sign.reset(); |
|
9526 | ||
9527 | adaptor.addChild(root_0, root_1); |
|
9528 | } |
|
9529 | ||
9530 | } |
|
9531 | ||
9532 | ||
9533 | retval.tree = root_0; |
|
9534 | } |
|
9535 | ||
9536 | } |
|
@@ 8373-8396 (lines=24) @@ | ||
8370 | // token list labels: |
|
8371 | // rule list labels: |
|
8372 | // wildcard labels: |
|
8373 | if ( state.backtracking==0 ) { |
|
8374 | retval.tree = root_0; |
|
8375 | RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null); |
|
8376 | ||
8377 | root_0 = (Object)adaptor.nil(); |
|
8378 | // 174:24: -> ^( VarID ( number )? ) |
|
8379 | { |
|
8380 | // /home/alessandro/opt/antlr/ddl3/ddl3.g:174:26: ^( VarID ( number )? ) |
|
8381 | { |
|
8382 | Object root_1 = (Object)adaptor.nil(); |
|
8383 | root_1 = (Object)adaptor.becomeRoot(stream_VarID.nextNode(), root_1); |
|
8384 | // /home/alessandro/opt/antlr/ddl3/ddl3.g:174:34: ( number )? |
|
8385 | if ( stream_number.hasNext() ) { |
|
8386 | adaptor.addChild(root_1, stream_number.nextTree()); |
|
8387 | } |
|
8388 | stream_number.reset(); |
|
8389 | ||
8390 | adaptor.addChild(root_0, root_1); |
|
8391 | } |
|
8392 | ||
8393 | } |
|
8394 | ||
8395 | ||
8396 | retval.tree = root_0; |
|
8397 | } |
|
8398 | ||
8399 | } |