public final TLParser.equExpr_return equExpr() throws RecognitionException {
        TLParser.equExpr_return retval = new TLParser.equExpr_return();
        retval.start = input.LT(1);

        Object root_0 = null;

        Token set115=null;
        TLParser.relExpr_return relExpr114 = null;

        TLParser.relExpr_return relExpr116 = null;


        Object set115_tree=null;

        try {
            // src/grammar/TL.g:151:3: ( relExpr ( ( '==' | '!=' ) relExpr )* )
            // src/grammar/TL.g:151:6: relExpr ( ( '==' | '!=' ) relExpr )*
            {
            root_0 = (Object)adaptor.nil();

            pushFollow(FOLLOW_relExpr_in_equExpr1064);
            relExpr114=relExpr();

            state._fsp--;

            adaptor.addChild(root_0, relExpr114.getTree());
            // src/grammar/TL.g:151:14: ( ( '==' | '!=' ) relExpr )*
            loop21:
            do {
                int alt21=2;
                int LA21_0 = input.LA(1);

                if ( ((LA21_0>=Equals && LA21_0<=NEquals)) ) {
                    alt21=1;
                }


                switch (alt21) {
            	case 1 :
            	    // src/grammar/TL.g:151:15: ( '==' | '!=' ) relExpr
            	    {
            	    set115=(Token)input.LT(1);
            	    set115=(Token)input.LT(1);
            	    if ( (input.LA(1)>=Equals && input.LA(1)<=NEquals) ) {
            	        input.consume();
            	        root_0 = (Object)adaptor.becomeRoot((Object)adaptor.create(set115), root_0);
            	        state.errorRecovery=false;
            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        throw mse;
            	    }

            	    pushFollow(FOLLOW_relExpr_in_equExpr1076);
            	    relExpr116=relExpr();

            	    state._fsp--;

            	    adaptor.addChild(root_0, relExpr116.getTree());

            	    }
            	    break;

            	default :
            	    break loop21;
                }
            } while (true);


            }

            retval.stop = input.LT(-1);

            retval.tree = (Object)adaptor.rulePostProcessing(root_0);
            adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);

        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
    	retval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);

        }
        finally {
        }
        return retval;
    }