AST __t1846 = _t;
AST __t1847 = _t;
	public final void readkeystate(AST _t) throws RecognitionException {				AST readkeystate_AST_in = (_t == ASTNULL) ? null : (AST)_t;				AST __t1843 = _t;		AST tmp1167_AST_in = (AST)_t;		match(_t,READKEY);		_t = _t.getFirstChild();		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case STREAM:		{			stream_name(_t);			_t = _retTree;			break;		}		case EOF:		case PERIOD:		case PAUSE:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case PAUSE:		{			AST __t1846 = _t;			AST tmp1168_AST_in = (AST)_t;			match(_t,PAUSE);			_t = _t.getFirstChild();			expression(_t);			_t = _retTree;			_t = __t1846;			_t = _t.getNextSibling();			break;		}		case EOF:		case PERIOD:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		state_end(_t);		_t = _retTree;		_t = __t1843;		_t = _t.getNextSibling();		_retTree = _t;	}