Code Duplication    Length = 40-40 lines in 5 locations

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

@@ 7568-7607 (lines=40) @@
7565
			if ( (LA47_0==VarID) ) {
7566
				alt47=1;
7567
			}
7568
			switch (alt47) {
7569
				case 1 :
7570
					// /home/alessandro/opt/antlr/ddl3/ddl3.g:159:50: par_value ( ',' par_value )*
7571
					{
7572
					pushFollow(FOLLOW_par_value_in_singleton_state_variable_component_decision1822);
7573
					par_value290=par_value();
7574
					state._fsp--;
7575
					if (state.failed) return retval;
7576
					if ( state.backtracking==0 ) stream_par_value.add(par_value290.getTree());
7577
					// /home/alessandro/opt/antlr/ddl3/ddl3.g:159:60: ( ',' par_value )*
7578
					loop46:
7579
					while (true) {
7580
						int alt46=2;
7581
						int LA46_0 = input.LA(1);
7582
						if ( (LA46_0==15) ) {
7583
							alt46=1;
7584
						}
7585
7586
						switch (alt46) {
7587
						case 1 :
7588
							// /home/alessandro/opt/antlr/ddl3/ddl3.g:159:61: ',' par_value
7589
							{
7590
							char_literal291=(Token)match(input,15,FOLLOW_15_in_singleton_state_variable_component_decision1825); if (state.failed) return retval; 
7591
							if ( state.backtracking==0 ) stream_15.add(char_literal291);
7592
7593
							pushFollow(FOLLOW_par_value_in_singleton_state_variable_component_decision1827);
7594
							par_value292=par_value();
7595
							state._fsp--;
7596
							if (state.failed) return retval;
7597
							if ( state.backtracking==0 ) stream_par_value.add(par_value292.getTree());
7598
							}
7599
							break;
7600
7601
						default :
7602
							break loop46;
7603
						}
7604
					}
7605
7606
					}
7607
					break;
7608
7609
			}
7610
@@ 6482-6521 (lines=40) @@
6479
					if ( (LA34_0==ID||LA34_0==9||LA34_0==25||(LA34_0 >= 78 && LA34_0 <= 79)) ) {
6480
						alt34=1;
6481
					}
6482
					switch (alt34) {
6483
						case 1 :
6484
							// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:334: parameter ( ',' parameter )*
6485
							{
6486
							pushFollow(FOLLOW_parameter_in_timeline1528);
6487
							parameter239=parameter();
6488
							state._fsp--;
6489
							if (state.failed) return retval;
6490
							if ( state.backtracking==0 ) stream_parameter.add(parameter239.getTree());
6491
							// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:344: ( ',' parameter )*
6492
							loop33:
6493
							while (true) {
6494
								int alt33=2;
6495
								int LA33_0 = input.LA(1);
6496
								if ( (LA33_0==15) ) {
6497
									alt33=1;
6498
								}
6499
6500
								switch (alt33) {
6501
								case 1 :
6502
									// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:345: ',' parameter
6503
									{
6504
									char_literal240=(Token)match(input,15,FOLLOW_15_in_timeline1531); if (state.failed) return retval; 
6505
									if ( state.backtracking==0 ) stream_15.add(char_literal240);
6506
6507
									pushFollow(FOLLOW_parameter_in_timeline1533);
6508
									parameter241=parameter();
6509
									state._fsp--;
6510
									if (state.failed) return retval;
6511
									if ( state.backtracking==0 ) stream_parameter.add(parameter241.getTree());
6512
									}
6513
									break;
6514
6515
								default :
6516
									break loop33;
6517
								}
6518
							}
6519
6520
							}
6521
							break;
6522
6523
					}
6524
@@ 6382-6421 (lines=40) @@
6379
					if ( (LA32_0==ID||LA32_0==9||LA32_0==25||(LA32_0 >= 78 && LA32_0 <= 79)) ) {
6380
						alt32=1;
6381
					}
6382
					switch (alt32) {
6383
						case 1 :
6384
							// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:219: parameter ( ',' parameter )*
6385
							{
6386
							pushFollow(FOLLOW_parameter_in_timeline1493);
6387
							parameter232=parameter();
6388
							state._fsp--;
6389
							if (state.failed) return retval;
6390
							if ( state.backtracking==0 ) stream_parameter.add(parameter232.getTree());
6391
							// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:229: ( ',' parameter )*
6392
							loop31:
6393
							while (true) {
6394
								int alt31=2;
6395
								int LA31_0 = input.LA(1);
6396
								if ( (LA31_0==15) ) {
6397
									alt31=1;
6398
								}
6399
6400
								switch (alt31) {
6401
								case 1 :
6402
									// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:230: ',' parameter
6403
									{
6404
									char_literal233=(Token)match(input,15,FOLLOW_15_in_timeline1496); if (state.failed) return retval; 
6405
									if ( state.backtracking==0 ) stream_15.add(char_literal233);
6406
6407
									pushFollow(FOLLOW_parameter_in_timeline1498);
6408
									parameter234=parameter();
6409
									state._fsp--;
6410
									if (state.failed) return retval;
6411
									if ( state.backtracking==0 ) stream_parameter.add(parameter234.getTree());
6412
									}
6413
									break;
6414
6415
								default :
6416
									break loop31;
6417
								}
6418
							}
6419
6420
							}
6421
							break;
6422
6423
					}
6424
@@ 6282-6321 (lines=40) @@
6279
					if ( (LA30_0==ID||LA30_0==9||LA30_0==25||(LA30_0 >= 78 && LA30_0 <= 79)) ) {
6280
						alt30=1;
6281
					}
6282
					switch (alt30) {
6283
						case 1 :
6284
							// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:123: parameter ( ',' parameter )*
6285
							{
6286
							pushFollow(FOLLOW_parameter_in_timeline1458);
6287
							parameter225=parameter();
6288
							state._fsp--;
6289
							if (state.failed) return retval;
6290
							if ( state.backtracking==0 ) stream_parameter.add(parameter225.getTree());
6291
							// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:133: ( ',' parameter )*
6292
							loop29:
6293
							while (true) {
6294
								int alt29=2;
6295
								int LA29_0 = input.LA(1);
6296
								if ( (LA29_0==15) ) {
6297
									alt29=1;
6298
								}
6299
6300
								switch (alt29) {
6301
								case 1 :
6302
									// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:134: ',' parameter
6303
									{
6304
									char_literal226=(Token)match(input,15,FOLLOW_15_in_timeline1461); if (state.failed) return retval; 
6305
									if ( state.backtracking==0 ) stream_15.add(char_literal226);
6306
6307
									pushFollow(FOLLOW_parameter_in_timeline1463);
6308
									parameter227=parameter();
6309
									state._fsp--;
6310
									if (state.failed) return retval;
6311
									if ( state.backtracking==0 ) stream_parameter.add(parameter227.getTree());
6312
									}
6313
									break;
6314
6315
								default :
6316
									break loop29;
6317
								}
6318
							}
6319
6320
							}
6321
							break;
6322
6323
					}
6324
@@ 6182-6221 (lines=40) @@
6179
					if ( (LA28_0==ID||LA28_0==9||LA28_0==25||(LA28_0 >= 78 && LA28_0 <= 79)) ) {
6180
						alt28=1;
6181
					}
6182
					switch (alt28) {
6183
						case 1 :
6184
							// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:25: parameter ( ',' parameter )*
6185
							{
6186
							pushFollow(FOLLOW_parameter_in_timeline1423);
6187
							parameter218=parameter();
6188
							state._fsp--;
6189
							if (state.failed) return retval;
6190
							if ( state.backtracking==0 ) stream_parameter.add(parameter218.getTree());
6191
							// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:35: ( ',' parameter )*
6192
							loop27:
6193
							while (true) {
6194
								int alt27=2;
6195
								int LA27_0 = input.LA(1);
6196
								if ( (LA27_0==15) ) {
6197
									alt27=1;
6198
								}
6199
6200
								switch (alt27) {
6201
								case 1 :
6202
									// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:36: ',' parameter
6203
									{
6204
									char_literal219=(Token)match(input,15,FOLLOW_15_in_timeline1426); if (state.failed) return retval; 
6205
									if ( state.backtracking==0 ) stream_15.add(char_literal219);
6206
6207
									pushFollow(FOLLOW_parameter_in_timeline1428);
6208
									parameter220=parameter();
6209
									state._fsp--;
6210
									if (state.failed) return retval;
6211
									if ( state.backtracking==0 ) stream_parameter.add(parameter220.getTree());
6212
									}
6213
									break;
6214
6215
								default :
6216
									break loop27;
6217
								}
6218
							}
6219
6220
							}
6221
							break;
6222
6223
					}
6224