public final ExprContext expr() throws RecognitionException {
		ExprContext _localctx = new ExprContext(_ctx, getState());
		enterRule(_localctx, 62, RULE_expr);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(330); factor();
			setState(337);
			_errHandler.sync(this);
			_la = _input.LA(1);
			while (_la==4 || _la==20) {
				{
				{
				setState(331); ((ExprContext)_localctx).addop = addop();
				setState(332); factor();
				if(current_element!=null){TypeTable.put(current_register,current_element.E_type); current_register++;String oldop = opstack.pop();CalcStep(opstack.pop(),(((ExprContext)_localctx).addop!=null?_input.getText(((ExprContext)_localctx).addop.start,((ExprContext)_localctx).addop.stop):null),oldop);oppfinished = 1;}
				}
				}
				setState(339);
				_errHandler.sync(this);
				_la = _input.LA(1);
			}
			CheckConstant();
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}