_t = __t792;
_t = __t793;
	public final void formstate(AST _t) throws RecognitionException {				AST formstate_AST_in = (_t == ASTNULL) ? null : (AST)_t;		AST head = null;				AST __t788 = _t;		head = _t==ASTNULL ? null :(AST)_t;		match(_t,FORMAT);		_t = _t.getFirstChild();		if ( inputState.guessing==0 ) {			action.frameInitializingStatement(head);		}		{		_loop790:		do {			if (_t==null) _t=ASTNULL;			if ((_t.getType()==Form_item)) {				form_item(_t,CQ.SYMBOL);				_t = _retTree;			}			else {				break _loop790;			}					} while (true);		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case HEADER:		{			AST __t792 = _t;			AST tmp1296_AST_in = (AST)_t;			match(_t,HEADER);			_t = _t.getFirstChild();			{			int _cnt794=0;			_loop794:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Form_item)) {					display_item(_t);					_t = _retTree;				}				else {					if ( _cnt794>=1 ) { break _loop794; } else {throw new NoViableAltException(_t);}				}								_cnt794++;			} while (true);			}			_t = __t792;			_t = _t.getNextSibling();			break;		}		case BACKGROUND:		{			AST __t795 = _t;			AST tmp1297_AST_in = (AST)_t;			match(_t,BACKGROUND);			_t = _t.getFirstChild();			{			int _cnt797=0;			_loop797:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Form_item)) {					display_item(_t);					_t = _retTree;				}				else {					if ( _cnt797>=1 ) { break _loop797; } else {throw new NoViableAltException(_t);}				}								_cnt797++;			} while (true);			}			_t = __t795;			_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 __t799 = _t;			AST tmp1298_AST_in = (AST)_t;			match(_t,EXCEPT);			_t = _t.getFirstChild();			{			_loop801:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Field_ref)) {					fld1(_t,CQ.SYMBOL);					_t = _retTree;				}				else {					break _loop801;				}							} while (true);			}			_t = __t799;			_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 = __t788;		_t = _t.getNextSibling();		_retTree = _t;	}