_t = __t2298;
_t = __t2301;
	public final void grantstate(AST _t) throws RecognitionException {				AST grantstate_AST_in = (_t == ASTNULL) ? null : (AST)_t;				AST __t2298 = _t;		AST tmp1116_AST_in = (AST)_t;		match(_t,GRANT);		_t = _t.getFirstChild();		{		grant_rev_opt(_t);		_t = _retTree;		}		AST tmp1117_AST_in = (AST)_t;		match(_t,ON);		_t = _t.getNextSibling();		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case RECORD_NAME:		{			AST tmp1118_AST_in = (AST)_t;			match(_t,RECORD_NAME);			_t = _t.getNextSibling();			break;		}		case ID:		{			AST tmp1119_AST_in = (AST)_t;			match(_t,ID);			_t = _t.getNextSibling();			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		grant_rev_to(_t);		_t = _retTree;		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case WITH:		{			AST tmp1120_AST_in = (AST)_t;			match(_t,WITH);			_t = _t.getNextSibling();			AST tmp1121_AST_in = (AST)_t;			match(_t,GRANT);			_t = _t.getNextSibling();			AST tmp1122_AST_in = (AST)_t;			match(_t,OPTION);			_t = _t.getNextSibling();			break;		}		case EOF:		case PERIOD:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		state_end(_t);		_t = _retTree;		_t = __t2298;		_t = _t.getNextSibling();		_retTree = _t;	}