public final HiveParser.listType_return listType() throws RecognitionException {
		HiveParser.listType_return retval = new HiveParser.listType_return();
		retval.start = input.LT(1);

		CommonTree root_0 = null;

		Token KW_ARRAY696=null;
		Token LESSTHAN697=null;
		Token GREATERTHAN699=null;
		ParserRuleReturnScope type698 =null;

		CommonTree KW_ARRAY696_tree=null;
		CommonTree LESSTHAN697_tree=null;
		CommonTree GREATERTHAN699_tree=null;
		RewriteRuleTokenStream stream_LESSTHAN=new RewriteRuleTokenStream(adaptor,"token LESSTHAN");
		RewriteRuleTokenStream stream_KW_ARRAY=new RewriteRuleTokenStream(adaptor,"token KW_ARRAY");
		RewriteRuleTokenStream stream_GREATERTHAN=new RewriteRuleTokenStream(adaptor,"token GREATERTHAN");
		RewriteRuleSubtreeStream stream_type=new RewriteRuleSubtreeStream(adaptor,"rule type");

		 msgs.push("list type"); 
		try {
			// HiveParser.g:1794:5: ( KW_ARRAY LESSTHAN type GREATERTHAN -> ^( TOK_LIST type ) )
			// HiveParser.g:1794:7: KW_ARRAY LESSTHAN type GREATERTHAN
			{
			KW_ARRAY696=(Token)match(input,KW_ARRAY,FOLLOW_KW_ARRAY_in_listType11170);  
			stream_KW_ARRAY.add(KW_ARRAY696);

			LESSTHAN697=(Token)match(input,LESSTHAN,FOLLOW_LESSTHAN_in_listType11172);  
			stream_LESSTHAN.add(LESSTHAN697);

			pushFollow(FOLLOW_type_in_listType11174);
			type698=type();
			state._fsp--;

			stream_type.add(type698.getTree());
			GREATERTHAN699=(Token)match(input,GREATERTHAN,FOLLOW_GREATERTHAN_in_listType11176);  
			stream_GREATERTHAN.add(GREATERTHAN699);

			// AST REWRITE
			// elements: type
			// token labels: 
			// rule labels: retval
			// token list labels: 
			// rule list labels: 
			// wildcard labels: 
			retval.tree = root_0;
			RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null);

			root_0 = (CommonTree)adaptor.nil();
			// 1794:44: -> ^( TOK_LIST type )
			{
				// HiveParser.g:1794:47: ^( TOK_LIST type )
				{
				CommonTree root_1 = (CommonTree)adaptor.nil();
				root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TOK_LIST, "TOK_LIST"), root_1);
				adaptor.addChild(root_1, stream_type.nextTree());
				adaptor.addChild(root_0, root_1);
				}

			}


			retval.tree = root_0;

			}

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

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

			 msgs.pop(); 
		}

		catch (RecognitionException e) {
		 reportError(e);
		  throw e;
		}

		finally {
			// do for sure before leaving
		}
		return retval;
	}