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

		CommonTree root_0 = null;

		Token KW_MAP704=null;
		Token LESSTHAN705=null;
		Token COMMA706=null;
		Token GREATERTHAN707=null;
		ParserRuleReturnScope left =null;
		ParserRuleReturnScope right =null;

		CommonTree KW_MAP704_tree=null;
		CommonTree LESSTHAN705_tree=null;
		CommonTree COMMA706_tree=null;
		CommonTree GREATERTHAN707_tree=null;
		RewriteRuleTokenStream stream_LESSTHAN=new RewriteRuleTokenStream(adaptor,"token LESSTHAN");
		RewriteRuleTokenStream stream_KW_MAP=new RewriteRuleTokenStream(adaptor,"token KW_MAP");
		RewriteRuleTokenStream stream_COMMA=new RewriteRuleTokenStream(adaptor,"token COMMA");
		RewriteRuleTokenStream stream_GREATERTHAN=new RewriteRuleTokenStream(adaptor,"token GREATERTHAN");
		RewriteRuleSubtreeStream stream_primitiveType=new RewriteRuleSubtreeStream(adaptor,"rule primitiveType");
		RewriteRuleSubtreeStream stream_type=new RewriteRuleSubtreeStream(adaptor,"rule type");

		 msgs.push("map type"); 
		try {
			// HiveParser.g:1806:5: ( KW_MAP LESSTHAN left= primitiveType COMMA right= type GREATERTHAN -> ^( TOK_MAP $left $right) )
			// HiveParser.g:1806:7: KW_MAP LESSTHAN left= primitiveType COMMA right= type GREATERTHAN
			{
			KW_MAP704=(Token)match(input,KW_MAP,FOLLOW_KW_MAP_in_mapType11254);  
			stream_KW_MAP.add(KW_MAP704);

			LESSTHAN705=(Token)match(input,LESSTHAN,FOLLOW_LESSTHAN_in_mapType11256);  
			stream_LESSTHAN.add(LESSTHAN705);

			pushFollow(FOLLOW_primitiveType_in_mapType11260);
			left=primitiveType();
			state._fsp--;

			stream_primitiveType.add(left.getTree());
			COMMA706=(Token)match(input,COMMA,FOLLOW_COMMA_in_mapType11262);  
			stream_COMMA.add(COMMA706);

			pushFollow(FOLLOW_type_in_mapType11266);
			right=type();
			state._fsp--;

			stream_type.add(right.getTree());
			GREATERTHAN707=(Token)match(input,GREATERTHAN,FOLLOW_GREATERTHAN_in_mapType11268);  
			stream_GREATERTHAN.add(GREATERTHAN707);

			// AST REWRITE
			// elements: left, right
			// token labels: 
			// rule labels: retval, left, right
			// 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);
			RewriteRuleSubtreeStream stream_left=new RewriteRuleSubtreeStream(adaptor,"rule left",left!=null?left.getTree():null);
			RewriteRuleSubtreeStream stream_right=new RewriteRuleSubtreeStream(adaptor,"rule right",right!=null?right.getTree():null);

			root_0 = (CommonTree)adaptor.nil();
			// 1807:5: -> ^( TOK_MAP $left $right)
			{
				// HiveParser.g:1807:8: ^( TOK_MAP $left $right)
				{
				CommonTree root_1 = (CommonTree)adaptor.nil();
				root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TOK_MAP, "TOK_MAP"), root_1);
				adaptor.addChild(root_1, stream_left.nextTree());
				adaptor.addChild(root_1, stream_right.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;
	}