AST tmp1004_AST_in = (AST)_t;
AST tmp1003_AST_in = (AST)_t;
	public final void definebuttonstate(AST _t) throws RecognitionException {				AST definebuttonstate_AST_in = (_t == ASTNULL) ? null : (AST)_t;		AST def = null;		AST id = null;				AST __t409 = _t;		def = _t==ASTNULL ? null :(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 BUTTON:		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 BUTTON:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		AST tmp993_AST_in = (AST)_t;		match(_t,BUTTON);		_t = _t.getNextSibling();		id = (AST)_t;		match(_t,ID);		_t = _t.getNextSibling();		if ( inputState.guessing==0 ) {			push(action.defineSymbol(BUTTON, def, id));		}		{		_loop433:		do {			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case AUTOGO:			{				AST tmp994_AST_in = (AST)_t;				match(_t,AUTOGO);				_t = _t.getNextSibling();				break;			}			case AUTOENDKEY:			{				AST tmp995_AST_in = (AST)_t;				match(_t,AUTOENDKEY);				_t = _t.getNextSibling();				break;			}			case DEFAULT:			{				AST tmp996_AST_in = (AST)_t;				match(_t,DEFAULT);				_t = _t.getNextSibling();				break;			}			case BGCOLOR:			case DCOLOR:			case FGCOLOR:			case PFCOLOR:			{				color_expr(_t);				_t = _retTree;				break;			}			case CONTEXTHELPID:			{				AST __t413 = _t;				AST tmp997_AST_in = (AST)_t;				match(_t,CONTEXTHELPID);				_t = _t.getFirstChild();				expression(_t);				_t = _retTree;				_t = __t413;				_t = _t.getNextSibling();				break;			}			case DROPTARGET:			{				AST tmp998_AST_in = (AST)_t;				match(_t,DROPTARGET);				_t = _t.getNextSibling();				break;			}			case FONT:			{				AST __t414 = _t;				AST tmp999_AST_in = (AST)_t;				match(_t,FONT);				_t = _t.getFirstChild();				expression(_t);				_t = _retTree;				_t = __t414;				_t = _t.getNextSibling();				break;			}			case IMAGEDOWN:			{				AST __t415 = _t;				AST tmp1000_AST_in = (AST)_t;				match(_t,IMAGEDOWN);				_t = _t.getFirstChild();				{				int _cnt417=0;				_loop417:				do {					if (_t==null) _t=ASTNULL;					if ((_tokenSet_10.member(_t.getType()))) {						imagephrase_opt(_t);						_t = _retTree;					}					else {						if ( _cnt417>=1 ) { break _loop417; } else {throw new NoViableAltException(_t);}					}										_cnt417++;				} while (true);				}				_t = __t415;				_t = _t.getNextSibling();				break;			}			case IMAGE:			{				AST __t418 = _t;				AST tmp1001_AST_in = (AST)_t;				match(_t,IMAGE);				_t = _t.getFirstChild();				{				int _cnt420=0;				_loop420:				do {					if (_t==null) _t=ASTNULL;					if ((_tokenSet_10.member(_t.getType()))) {						imagephrase_opt(_t);						_t = _retTree;					}					else {						if ( _cnt420>=1 ) { break _loop420; } else {throw new NoViableAltException(_t);}					}										_cnt420++;				} while (true);				}				_t = __t418;				_t = _t.getNextSibling();				break;			}			case IMAGEUP:			{				AST __t421 = _t;				AST tmp1002_AST_in = (AST)_t;				match(_t,IMAGEUP);				_t = _t.getFirstChild();				{				int _cnt423=0;				_loop423:				do {					if (_t==null) _t=ASTNULL;					if ((_tokenSet_10.member(_t.getType()))) {						imagephrase_opt(_t);						_t = _retTree;					}					else {						if ( _cnt423>=1 ) { break _loop423; } else {throw new NoViableAltException(_t);}					}										_cnt423++;				} while (true);				}				_t = __t421;				_t = _t.getNextSibling();				break;			}			case IMAGEINSENSITIVE:			{				AST __t424 = _t;				AST tmp1003_AST_in = (AST)_t;				match(_t,IMAGEINSENSITIVE);				_t = _t.getFirstChild();				{				int _cnt426=0;				_loop426:				do {					if (_t==null) _t=ASTNULL;					if ((_tokenSet_10.member(_t.getType()))) {						imagephrase_opt(_t);						_t = _retTree;					}					else {						if ( _cnt426>=1 ) { break _loop426; } else {throw new NoViableAltException(_t);}					}										_cnt426++;				} while (true);				}				_t = __t424;				_t = _t.getNextSibling();				break;			}			case MOUSEPOINTER:			{				AST __t427 = _t;				AST tmp1004_AST_in = (AST)_t;				match(_t,MOUSEPOINTER);				_t = _t.getFirstChild();				expression(_t);				_t = _retTree;				_t = __t427;				_t = _t.getNextSibling();				break;			}			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case LIKE:			{				AST __t428 = _t;				AST tmp1005_AST_in = (AST)_t;				match(_t,LIKE);				_t = _t.getFirstChild();				fld(_t,CQ.SYMBOL);				_t = _retTree;				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case VALIDATE:				{					AST tmp1006_AST_in = (AST)_t;					match(_t,VALIDATE);					_t = _t.getNextSibling();					break;				}				case 3:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				_t = __t428;				_t = _t.getNextSibling();				break;			}			case FLATBUTTON:			{				AST tmp1007_AST_in = (AST)_t;				match(_t,FLATBUTTON);				_t = _t.getNextSibling();				break;			}			case NOFOCUS:			{				AST __t430 = _t;				AST tmp1008_AST_in = (AST)_t;				match(_t,NOFOCUS);				_t = _t.getFirstChild();				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case FLATBUTTON:				{					AST tmp1009_AST_in = (AST)_t;					match(_t,FLATBUTTON);					_t = _t.getNextSibling();					break;				}				case 3:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				_t = __t430;				_t = _t.getNextSibling();				break;			}			case NOCONVERT3DCOLORS:			{				AST tmp1010_AST_in = (AST)_t;				match(_t,NOCONVERT3DCOLORS);				_t = _t.getNextSibling();				break;			}			case TOOLTIP:			{				tooltip_expr(_t);				_t = _retTree;				break;			}			case SIZE:			case SIZECHARS:			case SIZEPIXELS:			{				sizephrase(_t);				_t = _retTree;				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case MARGINEXTRA:				{					AST tmp1011_AST_in = (AST)_t;					match(_t,MARGINEXTRA);					_t = _t.getNextSibling();					break;				}				case EOF:				case PERIOD:				case AUTOENDKEY:				case AUTOGO:				case BGCOLOR:				case COLUMNLABEL:				case CONTEXTHELPID:				case DCOLOR:				case DEFAULT:				case DROPTARGET:				case FGCOLOR:				case FLATBUTTON:				case FONT:				case IMAGE:				case IMAGEDOWN:				case IMAGEINSENSITIVE:				case IMAGEUP:				case LABEL:				case LIKE:				case MOUSEPOINTER:				case NOCONVERT3DCOLORS:				case NOFOCUS:				case PFCOLOR:				case SIZE:				case SIZECHARS:				case SIZEPIXELS:				case TOOLTIP:				case TRIGGERS:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				break;			}			default:			{				break _loop433;			}			}		} while (true);		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case TRIGGERS:		{			triggerphrase(_t);			_t = _retTree;			break;		}		case EOF:		case PERIOD:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		state_end(_t);		_t = _retTree;		if ( inputState.guessing==0 ) {			action.addToSymbolScope(pop());		}		_t = __t409;		_t = _t.getNextSibling();		_retTree = _t;	}