_loop1038:
_loop1039:
	public final void defineparameterstate(AST _t) throws RecognitionException {				AST defineparameterstate_AST_in = (_t == ASTNULL) ? null : (AST)_t;				AST __t1018 = _t;		AST tmp675_AST_in = (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 INPUT:		case INPUTOUTPUT:		case OUTPUT:		case PARAMETER:		case PRIVATE:		case PUBLIC:		case RETURN:		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 INPUT:		case INPUTOUTPUT:		case OUTPUT:		case PARAMETER:		case RETURN:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case PARAMETER:		{			AST tmp676_AST_in = (AST)_t;			match(_t,PARAMETER);			_t = _t.getNextSibling();			AST tmp677_AST_in = (AST)_t;			match(_t,BUFFER);			_t = _t.getNextSibling();			AST tmp678_AST_in = (AST)_t;			match(_t,ID);			_t = _t.getNextSibling();			AST tmp679_AST_in = (AST)_t;			match(_t,FOR);			_t = _t.getNextSibling();			AST tmp680_AST_in = (AST)_t;			match(_t,RECORD_NAME);			_t = _t.getNextSibling();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case PRESELECT:			{				AST tmp681_AST_in = (AST)_t;				match(_t,PRESELECT);				_t = _t.getNextSibling();				break;			}			case EOF:			case PERIOD:			case COLUMNLABEL:			case FIELDS:			case LABEL:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case EOF:			case PERIOD:			case FIELDS:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case FIELDS:			{				AST __t1025 = _t;				AST tmp682_AST_in = (AST)_t;				match(_t,FIELDS);				_t = _t.getFirstChild();				{				_loop1027:				do {					if (_t==null) _t=ASTNULL;					if ((_t.getType()==Field_ref)) {						field(_t);						_t = _retTree;					}					else {						break _loop1027;					}									} while (true);				}				_t = __t1025;				_t = _t.getNextSibling();				break;			}			case EOF:			case PERIOD:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			break;		}		case INPUT:		case INPUTOUTPUT:		case OUTPUT:		case RETURN:		{			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case INPUT:			{				AST tmp683_AST_in = (AST)_t;				match(_t,INPUT);				_t = _t.getNextSibling();				break;			}			case OUTPUT:			{				AST tmp684_AST_in = (AST)_t;				match(_t,OUTPUT);				_t = _t.getNextSibling();				break;			}			case INPUTOUTPUT:			{				AST tmp685_AST_in = (AST)_t;				match(_t,INPUTOUTPUT);				_t = _t.getNextSibling();				break;			}			case RETURN:			{				AST tmp686_AST_in = (AST)_t;				match(_t,RETURN);				_t = _t.getNextSibling();				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			AST tmp687_AST_in = (AST)_t;			match(_t,PARAMETER);			_t = _t.getNextSibling();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case TABLE:			{				AST tmp688_AST_in = (AST)_t;				match(_t,TABLE);				_t = _t.getNextSibling();				AST tmp689_AST_in = (AST)_t;				match(_t,FOR);				_t = _t.getNextSibling();				AST tmp690_AST_in = (AST)_t;				match(_t,RECORD_NAME);				_t = _t.getNextSibling();				{				_loop1031:				do {					if (_t==null) _t=ASTNULL;					switch ( _t.getType()) {					case APPEND:					{						AST tmp691_AST_in = (AST)_t;						match(_t,APPEND);						_t = _t.getNextSibling();						break;					}					case BIND:					{						AST tmp692_AST_in = (AST)_t;						match(_t,BIND);						_t = _t.getNextSibling();						break;					}					default:					{						break _loop1031;					}					}				} while (true);				}				break;			}			case TABLEHANDLE:			{				AST tmp693_AST_in = (AST)_t;				match(_t,TABLEHANDLE);				_t = _t.getNextSibling();				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case FOR:				{					AST tmp694_AST_in = (AST)_t;					match(_t,FOR);					_t = _t.getNextSibling();					break;				}				case ID:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				AST tmp695_AST_in = (AST)_t;				match(_t,ID);				_t = _t.getNextSibling();				{				_loop1034:				do {					if (_t==null) _t=ASTNULL;					switch ( _t.getType()) {					case APPEND:					{						AST tmp696_AST_in = (AST)_t;						match(_t,APPEND);						_t = _t.getNextSibling();						break;					}					case BIND:					{						AST tmp697_AST_in = (AST)_t;						match(_t,BIND);						_t = _t.getNextSibling();						break;					}					default:					{						break _loop1034;					}					}				} while (true);				}				break;			}			case DATASET:			{				AST tmp698_AST_in = (AST)_t;				match(_t,DATASET);				_t = _t.getNextSibling();				AST tmp699_AST_in = (AST)_t;				match(_t,FOR);				_t = _t.getNextSibling();				AST tmp700_AST_in = (AST)_t;				match(_t,ID);				_t = _t.getNextSibling();				{				_loop1036:				do {					if (_t==null) _t=ASTNULL;					switch ( _t.getType()) {					case APPEND:					{						AST tmp701_AST_in = (AST)_t;						match(_t,APPEND);						_t = _t.getNextSibling();						break;					}					case BYVALUE:					{						AST tmp702_AST_in = (AST)_t;						match(_t,BYVALUE);						_t = _t.getNextSibling();						break;					}					case BIND:					{						AST tmp703_AST_in = (AST)_t;						match(_t,BIND);						_t = _t.getNextSibling();						break;					}					default:					{						break _loop1036;					}					}				} while (true);				}				break;			}			case DATASETHANDLE:			{				AST tmp704_AST_in = (AST)_t;				match(_t,DATASETHANDLE);				_t = _t.getNextSibling();				AST tmp705_AST_in = (AST)_t;				match(_t,ID);				_t = _t.getNextSibling();				{				_loop1038:				do {					if (_t==null) _t=ASTNULL;					switch ( _t.getType()) {					case APPEND:					{						AST tmp706_AST_in = (AST)_t;						match(_t,APPEND);						_t = _t.getNextSibling();						break;					}					case BYVALUE:					{						AST tmp707_AST_in = (AST)_t;						match(_t,BYVALUE);						_t = _t.getNextSibling();						break;					}					case BIND:					{						AST tmp708_AST_in = (AST)_t;						match(_t,BIND);						_t = _t.getNextSibling();						break;					}					default:					{						break _loop1038;					}					}				} while (true);				}				break;			}			case ID:			{				AST tmp709_AST_in = (AST)_t;				match(_t,ID);				_t = _t.getNextSibling();				defineparam_var(_t);				_t = _retTree;				{				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);				}				}				}				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		state_end(_t);		_t = _retTree;		_t = __t1018;		_t = _t.getNextSibling();		_retTree = _t;	}