_t = __t1821;
_t = __t1822;
	public final void putstate(AST _t) throws RecognitionException {				AST putstate_AST_in = (_t == ASTNULL) ? null : (AST)_t;				AST __t1821 = _t;		AST tmp1332_AST_in = (AST)_t;		match(_t,PUT);		_t = _t.getFirstChild();		{		if (_t==null) _t=ASTNULL;		if ((_t.getType()==STREAM)) {			stream_name(_t);			_t = _retTree;		}		else if ((_tokenSet_23.member(_t.getType()))) {		}		else {			throw new NoViableAltException(_t);		}				}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case CONTROL:		{			AST tmp1333_AST_in = (AST)_t;			match(_t,CONTROL);			_t = _t.getNextSibling();			break;		}		case UNFORMATTED:		{			AST tmp1334_AST_in = (AST)_t;			match(_t,UNFORMATTED);			_t = _t.getNextSibling();			break;		}		default:			if (_t==null) _t=ASTNULL;			if ((_tokenSet_24.member(_t.getType()))) {			}		else {			throw new NoViableAltException(_t);		}		}		}		{		_loop1836:		do {			if (_t==null) _t=ASTNULL;			switch ( _t.getType()) {			case SKIP:			{				skipphrase(_t);				_t = _retTree;				break;			}			case SPACE:			{				spacephrase(_t);				_t = _retTree;				break;			}			default:				boolean synPredMatched1828 = false;				if (_t==null) _t=ASTNULL;				if (((_t.getType()==NULL_KW))) {					AST __t1828 = _t;					synPredMatched1828 = true;					inputState.guessing++;					try {						{						AST __t1826 = _t;						AST tmp1335_AST_in = (AST)_t;						match(_t,NULL_KW);						_t = _t.getFirstChild();						{						if (_t==null) _t=ASTNULL;						switch ( _t.getType()) {						case LEFTPAREN:						{							AST tmp1336_AST_in = (AST)_t;							match(_t,LEFTPAREN);							_t = _t.getNextSibling();							break;						}						case 3:						{							break;						}						default:						{							throw new NoViableAltException(_t);						}						}						}						_t = __t1826;						_t = _t.getNextSibling();						}					}					catch (RecognitionException pe) {						synPredMatched1828 = false;					}					_t = __t1828;inputState.guessing--;				}				if ( synPredMatched1828 ) {					AST __t1829 = _t;					AST tmp1337_AST_in = (AST)_t;					match(_t,NULL_KW);					_t = _t.getFirstChild();					{					if (_t==null) _t=ASTNULL;					switch ( _t.getType()) {					case LEFTPAREN:					{						funargs(_t);						_t = _retTree;						break;					}					case 3:					{						break;					}					default:					{						throw new NoViableAltException(_t);					}					}					}					_t = __t1829;					_t = _t.getNextSibling();				}				else if ((_tokenSet_3.member(_t.getType()))) {					expression(_t);					_t = _retTree;					{					_loop1835:					do {						if (_t==null) _t=ASTNULL;						switch ( _t.getType()) {						case FORMAT:						{							AST __t1832 = _t;							AST tmp1338_AST_in = (AST)_t;							match(_t,FORMAT);							_t = _t.getFirstChild();							expression(_t);							_t = _retTree;							_t = __t1832;							_t = _t.getNextSibling();							break;						}						case AT:						{							AST __t1833 = _t;							AST tmp1339_AST_in = (AST)_t;							match(_t,AT);							_t = _t.getFirstChild();							expression(_t);							_t = _retTree;							_t = __t1833;							_t = _t.getNextSibling();							break;						}						case TO:						{							AST __t1834 = _t;							AST tmp1340_AST_in = (AST)_t;							match(_t,TO);							_t = _t.getFirstChild();							expression(_t);							_t = _retTree;							_t = __t1834;							_t = _t.getNextSibling();							break;						}						default:						{							break _loop1835;						}						}					} while (true);					}				}			else {				break _loop1836;			}			}		} while (true);		}		state_end(_t);		_t = _retTree;		_t = __t1821;		_t = _t.getNextSibling();		_retTree = _t;	}