Code Duplication    Length = 28-28 lines in 2 locations

src/main/java/it/cnr/istc/pst/platinum/ai/lang/ddl/v3/parser/ddl3Parser.java 2 locations

@@ 9010-9037 (lines=28) @@
9007
					// token list labels: 
9008
					// rule list labels: 
9009
					// wildcard labels: 
9010
					if ( state.backtracking==0 ) {
9011
					retval.tree = root_0;
9012
					RewriteRuleTokenStream stream_from=new RewriteRuleTokenStream(adaptor,"token from",from);
9013
					RewriteRuleTokenStream stream_to=new RewriteRuleTokenStream(adaptor,"token to",to);
9014
					RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null);
9015
9016
					root_0 = (Object)adaptor.nil();
9017
					// 182:83: -> ^( ';' temporal_relation_type $to ( $from)? )
9018
					{
9019
						// /home/alessandro/opt/antlr/ddl3/ddl3.g:182:85: ^( ';' temporal_relation_type $to ( $from)? )
9020
						{
9021
						Object root_1 = (Object)adaptor.nil();
9022
						root_1 = (Object)adaptor.becomeRoot(new DDLTemporalRelation(stream_19.nextToken()), root_1);
9023
						adaptor.addChild(root_1, stream_temporal_relation_type.nextTree());
9024
						adaptor.addChild(root_1, stream_to.nextNode());
9025
						// /home/alessandro/opt/antlr/ddl3/ddl3.g:182:140: ( $from)?
9026
						if ( stream_from.hasNext() ) {
9027
							adaptor.addChild(root_1, stream_from.nextNode());
9028
						}
9029
						stream_from.reset();
9030
9031
						adaptor.addChild(root_0, root_1);
9032
						}
9033
9034
					}
9035
9036
9037
					retval.tree = root_0;
9038
					}
9039
9040
					}
@@ 8678-8705 (lines=28) @@
8675
					// token list labels: 
8676
					// rule list labels: 
8677
					// wildcard labels: 
8678
					if ( state.backtracking==0 ) {
8679
					retval.tree = root_0;
8680
					RewriteRuleTokenStream stream_from=new RewriteRuleTokenStream(adaptor,"token from",from);
8681
					RewriteRuleTokenStream stream_to=new RewriteRuleTokenStream(adaptor,"token to",to);
8682
					RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null);
8683
8684
					root_0 = (Object)adaptor.nil();
8685
					// 177:113: -> ^( ';' temporal_relation_type $to ( $from)? )
8686
					{
8687
						// /home/alessandro/opt/antlr/ddl3/ddl3.g:177:115: ^( ';' temporal_relation_type $to ( $from)? )
8688
						{
8689
						Object root_1 = (Object)adaptor.nil();
8690
						root_1 = (Object)adaptor.becomeRoot(new DDLTemporalRelation(stream_19.nextToken()), root_1);
8691
						adaptor.addChild(root_1, stream_temporal_relation_type.nextTree());
8692
						adaptor.addChild(root_1, stream_to.nextNode());
8693
						// /home/alessandro/opt/antlr/ddl3/ddl3.g:177:170: ( $from)?
8694
						if ( stream_from.hasNext() ) {
8695
							adaptor.addChild(root_1, stream_from.nextNode());
8696
						}
8697
						stream_from.reset();
8698
8699
						adaptor.addChild(root_0, root_1);
8700
						}
8701
8702
					}
8703
8704
8705
					retval.tree = root_0;
8706
					}
8707
8708
					}