AST __t1315 = _t;
AST __t1319 = _t;
	public final void formstate(AST _t) throws RecognitionException {				AST formstate_AST_in = (_t == ASTNULL) ? null : (AST)_t;				AST __t1315 = _t;		AST tmp848_AST_in = (AST)_t;		match(_t,FORMAT);		_t = _t.getFirstChild();		{		_loop1317:		do {			if (_t==null) _t=ASTNULL;			if ((_t.getType()==Form_item)) {				form_item(_t);				_t = _retTree;			}			else {				break _loop1317;			}					} while (true);		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case HEADER:		{			AST __t1319 = _t;			AST tmp849_AST_in = (AST)_t;			match(_t,HEADER);			_t = _t.getFirstChild();			{			int _cnt1321=0;			_loop1321:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Form_item)) {					display_item(_t);					_t = _retTree;				}				else {					if ( _cnt1321>=1 ) { break _loop1321; } else {throw new NoViableAltException(_t);}				}								_cnt1321++;			} while (true);			}			_t = __t1319;			_t = _t.getNextSibling();			break;		}		case BACKGROUND:		{			AST __t1322 = _t;			AST tmp850_AST_in = (AST)_t;			match(_t,BACKGROUND);			_t = _t.getFirstChild();			{			int _cnt1324=0;			_loop1324:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Form_item)) {					display_item(_t);					_t = _retTree;				}				else {					if ( _cnt1324>=1 ) { break _loop1324; } else {throw new NoViableAltException(_t);}				}								_cnt1324++;			} while (true);			}			_t = __t1322;			_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 __t1326 = _t;			AST tmp851_AST_in = (AST)_t;			match(_t,EXCEPT);			_t = _t.getFirstChild();			{			_loop1328:			do {				if (_t==null) _t=ASTNULL;				if ((_t.getType()==Field_ref)) {					field(_t);					_t = _retTree;				}				else {					break _loop1328;				}							} while (true);			}			_t = __t1326;			_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 = __t1315;		_t = _t.getNextSibling();		_retTree = _t;	}