if ( _cnt1138>=1 ) { break _loop1138; } else {throw new NoViableAltException(_t);}
if ( _cnt1142>=1 ) { break _loop1142; } else {throw new NoViableAltException(_t);}
	public final void defineframestate(AST _t) throws RecognitionException {				AST defineframestate_AST_in = (_t == ASTNULL) ? null : (AST)_t;				AST __t1127 = _t;		AST tmp947_AST_in = (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:		case PUBLIC:		case PROTECTED:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case PRIVATE:		case PUBLIC:		case PROTECTED:		{			def_visib(_t);			_t = _retTree;			break;		}		case FRAME:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		AST tmp948_AST_in = (AST)_t;		match(_t,FRAME);		_t = _t.getNextSibling();		AST tmp949_AST_in = (AST)_t;		match(_t,ID);		_t = _t.getNextSibling();		{		_loop1131:		do {			if (_t==null) _t=ASTNULL;			if ((_t.getType()==Form_item)) {				form_item(_t);				_t = _retTree;			}			else {				break _loop1131;			}					} while (true);		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case HEADER:		{			AST __t1133 = _t;			AST tmp950_AST_in = (AST)_t;			match(_t,HEADER);			_t = _t.getFirstChild();			{			int _cnt1135=0;			_loop1135:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Form_item)) {					display_item(_t);					_t = _retTree;				}				else {					if ( _cnt1135>=1 ) { break _loop1135; } else {throw new NoViableAltException(_t);}				}								_cnt1135++;			} while (true);			}			_t = __t1133;			_t = _t.getNextSibling();			break;		}		case BACKGROUND:		{			AST __t1136 = _t;			AST tmp951_AST_in = (AST)_t;			match(_t,BACKGROUND);			_t = _t.getFirstChild();			{			int _cnt1138=0;			_loop1138:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Form_item)) {					display_item(_t);					_t = _retTree;				}				else {					if ( _cnt1138>=1 ) { break _loop1138; } else {throw new NoViableAltException(_t);}				}								_cnt1138++;			} while (true);			}			_t = __t1136;			_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 __t1140 = _t;			AST tmp952_AST_in = (AST)_t;			match(_t,EXCEPT);			_t = _t.getFirstChild();			{			_loop1142:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Field_ref)) {					field(_t);					_t = _retTree;				}				else {					break _loop1142;				}							} while (true);			}			_t = __t1140;			_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;		_t = __t1127;		_t = _t.getNextSibling();		_retTree = _t;	}