_cnt481++;
_cnt466++;
	public final void defineframestate(AST _t) throws RecognitionException {				AST defineframestate_AST_in = (_t == ASTNULL) ? null : (AST)_t;		AST def = null;		AST id = null;				AST __t473 = _t;		def = _t==ASTNULL ? null :(AST)_t;		match(_t,DEFINE);		_t = _t.getFirstChild();		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case NEW:		case SHARED:		{			def_shared(_t);			_t = _retTree;			break;		}		case FRAME:		case PRIVATE:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case PRIVATE:		{			AST tmp1063_AST_in = (AST)_t;			match(_t,PRIVATE);			_t = _t.getNextSibling();			break;		}		case FRAME:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		AST tmp1064_AST_in = (AST)_t;		match(_t,FRAME);		_t = _t.getNextSibling();		id = (AST)_t;		match(_t,ID);		_t = _t.getNextSibling();		if ( inputState.guessing==0 ) {			action.frameDef(def, id);		}		{		_loop477:		do {			if (_t==null) _t=ASTNULL;			if ((_t.getType()==Form_item)) {				form_item(_t,CQ.SYMBOL);				_t = _retTree;			}			else {				break _loop477;			}					} while (true);		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case HEADER:		{			AST __t479 = _t;			AST tmp1065_AST_in = (AST)_t;			match(_t,HEADER);			_t = _t.getFirstChild();			{			int _cnt481=0;			_loop481:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Form_item)) {					display_item(_t);					_t = _retTree;				}				else {					if ( _cnt481>=1 ) { break _loop481; } else {throw new NoViableAltException(_t);}				}								_cnt481++;			} while (true);			}			_t = __t479;			_t = _t.getNextSibling();			break;		}		case BACKGROUND:		{			AST __t482 = _t;			AST tmp1066_AST_in = (AST)_t;			match(_t,BACKGROUND);			_t = _t.getFirstChild();			{			int _cnt484=0;			_loop484:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Form_item)) {					display_item(_t);					_t = _retTree;				}				else {					if ( _cnt484>=1 ) { break _loop484; } else {throw new NoViableAltException(_t);}				}								_cnt484++;			} while (true);			}			_t = __t482;			_t = _t.getNextSibling();			break;		}		case EOF:		case PERIOD:		case EXCEPT:		case WITH:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case EXCEPT:		{			AST __t486 = _t;			AST tmp1067_AST_in = (AST)_t;			match(_t,EXCEPT);			_t = _t.getFirstChild();			{			_loop488:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Field_ref)) {					fld1(_t,CQ.SYMBOL);					_t = _retTree;				}				else {					break _loop488;				}							} while (true);			}			_t = __t486;			_t = _t.getNextSibling();			break;		}		case EOF:		case PERIOD:		case WITH:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case WITH:		{			framephrase(_t);			_t = _retTree;			break;		}		case EOF:		case PERIOD:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		state_end(_t);		_t = _retTree;		if ( inputState.guessing==0 ) {			action.frameStatementEnd();		}		_t = __t473;		_t = _t.getNextSibling();		_retTree = _t;	}