Code Duplication    Length = 26-26 lines in 2 locations

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

@@ 6136-6161 (lines=26) @@
6133
6134
			// /home/alessandro/opt/antlr/ddl3/ddl3.g:136:2: ( 'ESTA_LIGHT' ID '(' ( parameter ( ',' parameter )* )? ')' -> ^( 'ESTA_LIGHT' ID ( parameter )* ) | 'BOUNDED' ID '(' ( parameter ( ',' parameter )* )? ')' -> ^( 'BOUNDED' ID ( parameter )* ) | 'FLEXIBLE' ID '(' ( parameter ( ',' parameter )* )? ')' -> ^( 'FLEXIBLE' ID ( parameter )* ) | 'ESTA_LIGHT_MAX_CONSUMPTION' ID '(' ( parameter ( ',' parameter )* )? ')' -> ^( 'ESTA_LIGHT_MAX_CONSUMPTION' ID ( parameter )* ) )
6135
			int alt35=4;
6136
			switch ( input.LA(1) ) {
6137
			case 48:
6138
				{
6139
				alt35=1;
6140
				}
6141
				break;
6142
			case 33:
6143
				{
6144
				alt35=2;
6145
				}
6146
				break;
6147
			case 53:
6148
				{
6149
				alt35=3;
6150
				}
6151
				break;
6152
			case 49:
6153
				{
6154
				alt35=4;
6155
				}
6156
				break;
6157
			default:
6158
				if (state.backtracking>0) {state.failed=true; return retval;}
6159
				NoViableAltException nvae =
6160
					new NoViableAltException("", 35, 0, input);
6161
				throw nvae;
6162
			}
6163
			switch (alt35) {
6164
				case 1 :
@@ 613-638 (lines=26) @@
610
611
			// /home/alessandro/opt/antlr/ddl3/ddl3.g:18:2: ( parameter_type | component_type | component | timeline_synchronization )
612
			int alt4=4;
613
			switch ( input.LA(1) ) {
614
			case 60:
615
				{
616
				alt4=1;
617
				}
618
				break;
619
			case 35:
620
				{
621
				alt4=2;
622
				}
623
				break;
624
			case 34:
625
				{
626
				alt4=3;
627
				}
628
				break;
629
			case 71:
630
				{
631
				alt4=4;
632
				}
633
				break;
634
			default:
635
				if (state.backtracking>0) {state.failed=true; return retval;}
636
				NoViableAltException nvae =
637
					new NoViableAltException("", 4, 0, input);
638
				throw nvae;
639
			}
640
			switch (alt4) {
641
				case 1 :