AST tmp1283_AST_in = (AST)_t;
AST tmp1282_AST_in = (AST)_t;
	public final void formstate(AST _t) throws RecognitionException {				AST formstate_AST_in = (_t == ASTNULL) ? null : (AST)_t;		AST head = null;				AST __t798 = _t;		head = _t==ASTNULL ? null :(AST)_t;		match(_t,FORMAT);		_t = _t.getFirstChild();		if ( inputState.guessing==0 ) {			action.frameInitializingStatement(head);		}		{		_loop800:		do {			if (_t==null) _t=ASTNULL;			if ((_t.getType()==Form_item)) {				form_item(_t,CQ.SYMBOL);				_t = _retTree;			}			else {				break _loop800;			}					} while (true);		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case HEADER:		{			AST __t802 = _t;			AST tmp1283_AST_in = (AST)_t;			match(_t,HEADER);			_t = _t.getFirstChild();			{			int _cnt804=0;			_loop804:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Form_item)) {					display_item(_t);					_t = _retTree;				}				else {					if ( _cnt804>=1 ) { break _loop804; } else {throw new NoViableAltException(_t);}				}								_cnt804++;			} while (true);			}			_t = __t802;			_t = _t.getNextSibling();			break;		}		case BACKGROUND:		{			AST __t805 = _t;			AST tmp1284_AST_in = (AST)_t;			match(_t,BACKGROUND);			_t = _t.getFirstChild();			{			int _cnt807=0;			_loop807:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Form_item)) {					display_item(_t);					_t = _retTree;				}				else {					if ( _cnt807>=1 ) { break _loop807; } else {throw new NoViableAltException(_t);}				}								_cnt807++;			} while (true);			}			_t = __t805;			_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 __t809 = _t;			AST tmp1285_AST_in = (AST)_t;			match(_t,EXCEPT);			_t = _t.getFirstChild();			{			_loop811:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Field_ref)) {					fld1(_t,CQ.SYMBOL);					_t = _retTree;				}				else {					break _loop811;				}							} while (true);			}			_t = __t809;			_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 = __t798;		_t = _t.getNextSibling();		_retTree = _t;	}