code: public final hqlParser.asAlias_return asAlias() throws RecognitionException {
  		hqlParser.asAlias_return retval = new hqlParser.asAlias_return();
  		retval.start = input.LT(1);
  
  		CommonTree root_0 = null;
  
  		Token AS116=null;
  		ParserRuleReturnScope alias117 =null;
  
  		CommonTree AS116_tree=null;
  
  		try {
  			// hql.g:319:2: ( ( AS !)? alias )
  			// hql.g:319:4: ( AS !)? alias
  			{
  			root_0 = (CommonTree)adaptor.nil();
  
  
  			// hql.g:319:4: ( AS !)?
  			int alt38=2;
  			int LA38_0 = input.LA(1);
  			if ( (LA38_0==AS) ) {
  				alt38=1;
  			}
  			switch (alt38) {
  				case 1 :
  					// hql.g:319:5: AS !
  					{
  					AS116=(Token)match(input,AS,FOLLOW_AS_in_asAlias1520);
  					}
  					break;
  
  			}
  
  			pushFollow(FOLLOW_alias_in_asAlias1525);
  			alias117=alias();
  			state._fsp--;
  
  			adaptor.addChild(root_0, alias117.getTree());
  
  			}
  
  			retval.stop = input.LT(-1);
  
  			retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);
  			adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);
  
  		}
  		catch (RecognitionException re) {
  			reportError(re);
  			recover(input,re);
  			retval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);
  		}
  		finally {
  			// do for sure before leaving
  		}
  		return retval;
  	}
docs: hql.g:318:1: asAlias : ( AS !)? alias ;