public final Write_stmtContext write_stmt() throws RecognitionException {
		Write_stmtContext _localctx = new Write_stmtContext(_ctx, getState());
		enterRule(_localctx, 58, RULE_write_stmt);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(318); match(18);
			setState(319); match(6);
			setState(320); ((Write_stmtContext)_localctx).id_list = id_list();
			ProcessReadWrite((((Write_stmtContext)_localctx).id_list!=null?_input.getText(((Write_stmtContext)_localctx).id_list.start,((Write_stmtContext)_localctx).id_list.stop):null),"WRITE");
			setState(322); match(19);
			setState(323); match(24);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}