AST __t561 = _t;
AST __t565 = _t;
	public final void colorstate(AST _t) throws RecognitionException {				AST colorstate_AST_in = (_t == ASTNULL) ? null : (AST)_t;				AST __t558 = _t;		AST tmp346_AST_in = (AST)_t;		match(_t,COLOR);		_t = _t.getFirstChild();		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case DISPLAY:		case PROMPT:		{			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case DISPLAY:			{				AST __t561 = _t;				AST tmp347_AST_in = (AST)_t;				match(_t,DISPLAY);				_t = _t.getFirstChild();				anyorvalue(_t);				_t = _retTree;				_t = __t561;				_t = _t.getNextSibling();				break;			}			case PROMPT:			{				AST __t562 = _t;				AST tmp348_AST_in = (AST)_t;				match(_t,PROMPT);				_t = _t.getFirstChild();				anyorvalue(_t);				_t = _retTree;				_t = __t562;				_t = _t.getNextSibling();				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case DISPLAY:			{				AST __t564 = _t;				AST tmp349_AST_in = (AST)_t;				match(_t,DISPLAY);				_t = _t.getFirstChild();				anyorvalue(_t);				_t = _retTree;				_t = __t564;				_t = _t.getNextSibling();				break;			}			case PROMPT:			{				AST __t565 = _t;				AST tmp350_AST_in = (AST)_t;				match(_t,PROMPT);				_t = _t.getFirstChild();				anyorvalue(_t);				_t = _retTree;				_t = __t565;				_t = _t.getNextSibling();				break;			}			case EOF:			case PERIOD:			case WITH:			case Form_item:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			break;		}		case EOF:		case PERIOD:		case WITH:		case Form_item:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		_loop569:		do {			if (_t==null) _t=ASTNULL;			if ((_t.getType()==Form_item)) {				AST __t567 = _t;				AST tmp351_AST_in = (AST)_t;				match(_t,Form_item);				_t = _t.getFirstChild();				field(_t);				_t = _retTree;				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case Format_phrase:				{					formatphrase(_t);					_t = _retTree;					break;				}				case 3:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				_t = __t567;				_t = _t.getNextSibling();			}			else {				break _loop569;			}					} while (true);		}		{		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 = __t558;		_t = _t.getNextSibling();		_retTree = _t;	}