AST tmp1565_AST_in = (AST)_t;
AST tmp1569_AST_in = (AST)_t;
	public final void triggerprocedurestate(AST _t) throws RecognitionException {				AST triggerprocedurestate_AST_in = (_t == ASTNULL) ? null : (AST)_t;		AST t1 = null;		AST rec = null;		AST id4 = null;		AST id3 = null;		AST id = null;		AST id2 = null;				AST __t1182 = _t;		AST tmp1549_AST_in = (AST)_t;		match(_t,TRIGGER);		_t = _t.getFirstChild();		AST tmp1550_AST_in = (AST)_t;		match(_t,PROCEDURE);		_t = _t.getNextSibling();		AST tmp1551_AST_in = (AST)_t;		match(_t,FOR);		_t = _t.getNextSibling();		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case CREATE:		case DELETE_KW:		case FIND:		case REPLICATIONCREATE:		case REPLICATIONDELETE:		{			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case CREATE:			{				AST tmp1552_AST_in = (AST)_t;				match(_t,CREATE);				_t = _t.getNextSibling();				break;			}			case DELETE_KW:			{				AST tmp1553_AST_in = (AST)_t;				match(_t,DELETE_KW);				_t = _t.getNextSibling();				break;			}			case FIND:			{				AST tmp1554_AST_in = (AST)_t;				match(_t,FIND);				_t = _t.getNextSibling();				break;			}			case REPLICATIONCREATE:			{				AST tmp1555_AST_in = (AST)_t;				match(_t,REPLICATIONCREATE);				_t = _t.getNextSibling();				break;			}			case REPLICATIONDELETE:			{				AST tmp1556_AST_in = (AST)_t;				match(_t,REPLICATIONDELETE);				_t = _t.getNextSibling();				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			AST tmp1557_AST_in = (AST)_t;			match(_t,OF);			_t = _t.getNextSibling();			t1 = _t==ASTNULL ? null : (AST)_t;			tbl(_t,CQ.SYMBOL);			_t = _retTree;			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case EOF:			case PERIOD:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			if ( inputState.guessing==0 ) {				action.defineBufferForTrigger(t1);			}			break;		}		case REPLICATIONWRITE:		case WRITE:		{			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case WRITE:			{				AST tmp1558_AST_in = (AST)_t;				match(_t,WRITE);				_t = _t.getNextSibling();				break;			}			case REPLICATIONWRITE:			{				AST tmp1559_AST_in = (AST)_t;				match(_t,REPLICATIONWRITE);				_t = _t.getNextSibling();				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			AST tmp1560_AST_in = (AST)_t;			match(_t,OF);			_t = _t.getNextSibling();			rec = _t==ASTNULL ? null : (AST)_t;			tbl(_t,CQ.SYMBOL);			_t = _retTree;			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case COLUMNLABEL:			case LABEL:			{				label_constant(_t);				_t = _retTree;				break;			}			case EOF:			case PERIOD:			case NEW:			case OLD:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case NEW:			{				AST tmp1561_AST_in = (AST)_t;				match(_t,NEW);				_t = _t.getNextSibling();				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case BUFFER:				{					AST tmp1562_AST_in = (AST)_t;					match(_t,BUFFER);					_t = _t.getNextSibling();					break;				}				case ID:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				id4 = (AST)_t;				match(_t,ID);				_t = _t.getNextSibling();				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case COLUMNLABEL:				case LABEL:				{					label_constant(_t);					_t = _retTree;					break;				}				case EOF:				case PERIOD:				case OLD:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				if ( inputState.guessing==0 ) {					action.defineBuffer(id4, id4, rec, true);				}				break;			}			case EOF:			case PERIOD:			case OLD:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			if ( inputState.guessing==0 ) {				if (id4 == null) action.defineBufferForTrigger(rec);			}			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case OLD:			{				AST tmp1563_AST_in = (AST)_t;				match(_t,OLD);				_t = _t.getNextSibling();				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case BUFFER:				{					AST tmp1564_AST_in = (AST)_t;					match(_t,BUFFER);					_t = _t.getNextSibling();					break;				}				case ID:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				id3 = (AST)_t;				match(_t,ID);				_t = _t.getNextSibling();				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case COLUMNLABEL:				case LABEL:				{					label_constant(_t);					_t = _retTree;					break;				}				case EOF:				case PERIOD:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				if ( inputState.guessing==0 ) {					action.defineBuffer(id3, id3, rec, true);				}				break;			}			case EOF:			case PERIOD:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			break;		}		case ASSIGN:		{			AST tmp1565_AST_in = (AST)_t;			match(_t,ASSIGN);			_t = _t.getNextSibling();			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case OF:			{				AST __t1195 = _t;				AST tmp1566_AST_in = (AST)_t;				match(_t,OF);				_t = _t.getFirstChild();				fld(_t,CQ.SYMBOL);				_t = _retTree;				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case TABLE:				{					AST __t1197 = _t;					AST tmp1567_AST_in = (AST)_t;					match(_t,TABLE);					_t = _t.getFirstChild();					AST tmp1568_AST_in = (AST)_t;					match(_t,LABEL);					_t = _t.getNextSibling();					constant(_t);					_t = _retTree;					_t = __t1197;					_t = _t.getNextSibling();					break;				}				case 3:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				_t = __t1195;				_t = _t.getNextSibling();				break;			}			case NEW:			{				AST __t1198 = _t;				AST tmp1569_AST_in = (AST)_t;				match(_t,NEW);				_t = _t.getFirstChild();				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case VALUE:				{					AST tmp1570_AST_in = (AST)_t;					match(_t,VALUE);					_t = _t.getNextSibling();					break;				}				case ID:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				id = (AST)_t;				match(_t,ID);				_t = _t.getNextSibling();				if ( inputState.guessing==0 ) {					push(action.defineVariable(id, id));				}				defineparam_var(_t);				_t = _retTree;				if ( inputState.guessing==0 ) {					action.addToSymbolScope(pop());				}				_t = __t1198;				_t = _t.getNextSibling();				break;			}			case EOF:			case PERIOD:			case OLD:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			{			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case OLD:			{				AST __t1201 = _t;				AST tmp1571_AST_in = (AST)_t;				match(_t,OLD);				_t = _t.getFirstChild();				{				if (_t==null) _t=ASTNULL;				switch ( _t.getType()) {				case VALUE:				{					AST tmp1572_AST_in = (AST)_t;					match(_t,VALUE);					_t = _t.getNextSibling();					break;				}				case ID:				{					break;				}				default:				{					throw new NoViableAltException(_t);				}				}				}				id2 = (AST)_t;				match(_t,ID);				_t = _t.getNextSibling();				if ( inputState.guessing==0 ) {					push(action.defineVariable(id2, id2));				}				defineparam_var(_t);				_t = _retTree;				_t = __t1201;				_t = _t.getNextSibling();				if ( inputState.guessing==0 ) {					action.addToSymbolScope(pop());				}				break;			}			case EOF:			case PERIOD:			{				break;			}			default:			{				throw new NoViableAltException(_t);			}			}			}			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		state_end(_t);		_t = _retTree;		_t = __t1182;		_t = _t.getNextSibling();		_retTree = _t;	}