Code Duplication    Length = 29-29 lines in 2 locations

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

@@ 4173-4201 (lines=29) @@
4170
			// /home/alessandro/opt/antlr/ddl3/ddl3.g:88:2: ( VarID '=' enumeration_comparison_rvalue -> ^( '=' VarID enumeration_comparison_rvalue ) | VarID '!=' enumeration_comparison_rvalue -> ^( '!=' VarID enumeration_comparison_rvalue ) )
4171
			int alt14=2;
4172
			int LA14_0 = input.LA(1);
4173
			if ( (LA14_0==VarID) ) {
4174
				int LA14_1 = input.LA(2);
4175
				if ( (LA14_1==22) ) {
4176
					alt14=1;
4177
				}
4178
				else if ( (LA14_1==10) ) {
4179
					alt14=2;
4180
				}
4181
4182
				else {
4183
					if (state.backtracking>0) {state.failed=true; return retval;}
4184
					int nvaeMark = input.mark();
4185
					try {
4186
						input.consume();
4187
						NoViableAltException nvae =
4188
							new NoViableAltException("", 14, 1, input);
4189
						throw nvae;
4190
					} finally {
4191
						input.rewind(nvaeMark);
4192
					}
4193
				}
4194
4195
			}
4196
4197
			else {
4198
				if (state.backtracking>0) {state.failed=true; return retval;}
4199
				NoViableAltException nvae =
4200
					new NoViableAltException("", 14, 0, input);
4201
				throw nvae;
4202
			}
4203
4204
			switch (alt14) {
@@ 747-775 (lines=29) @@
744
			// /home/alessandro/opt/antlr/ddl3/ddl3.g:22:2: ( numeric_parameter_type | enumeration_parameter_type )
745
			int alt5=2;
746
			int LA5_0 = input.LA(1);
747
			if ( (LA5_0==60) ) {
748
				int LA5_1 = input.LA(2);
749
				if ( (LA5_1==57) ) {
750
					alt5=1;
751
				}
752
				else if ( (LA5_1==50) ) {
753
					alt5=2;
754
				}
755
756
				else {
757
					if (state.backtracking>0) {state.failed=true; return retval;}
758
					int nvaeMark = input.mark();
759
					try {
760
						input.consume();
761
						NoViableAltException nvae =
762
							new NoViableAltException("", 5, 1, input);
763
						throw nvae;
764
					} finally {
765
						input.rewind(nvaeMark);
766
					}
767
				}
768
769
			}
770
771
			else {
772
				if (state.backtracking>0) {state.failed=true; return retval;}
773
				NoViableAltException nvae =
774
					new NoViableAltException("", 5, 0, input);
775
				throw nvae;
776
			}
777
778
			switch (alt5) {