public final TypeCalculationContext typeCalculation() throws RecognitionException { TypeCalculationContext _localctx = new TypeCalculationContext(_ctx, getState()); enterRule(_localctx, 0, RULE_typeCalculation); try { enterOuterAlt(_localctx, 1); { setState(6); expression(0); setState(7); match(EOF); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
public final BinaryFunctionNameContext binaryFunctionName() throws RecognitionException { BinaryFunctionNameContext _localctx = new BinaryFunctionNameContext(_ctx, getState()); enterRule(_localctx, 4, RULE_binaryFunctionName); int _la; try { enterOuterAlt(_localctx, 1); { setState(39); ((BinaryFunctionNameContext)_localctx).name = _input.LT(1); _la = _input.LA(1); if ( !(_la==MIN || _la==MAX) ) { ((BinaryFunctionNameContext)_localctx).name = (Token)_errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
setState(26); _errHandler.sync(this); switch (_input.LA(1)) { setState(10); match(NULL); _ctx = _localctx; _prevctx = _localctx; setState(11); match(INTEGER_VALUE); _ctx = _localctx; _prevctx = _localctx; setState(12); binaryFunctionName(); setState(13); match(T__0); setState(14); ((BinaryFunctionContext)_localctx).left = expression(0); setState(15); match(T__1); setState(16); ((BinaryFunctionContext)_localctx).right = expression(0); setState(17); match(T__2); _ctx = _localctx; _prevctx = _localctx;
public final TypeCalculationContext typeCalculation() throws RecognitionException { TypeCalculationContext _localctx = new TypeCalculationContext(_ctx, getState()); enterRule(_localctx, 0, RULE_typeCalculation); try { enterOuterAlt(_localctx, 1); { setState(6); expression(0); setState(7); match(EOF); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
public final TypeCalculationContext typeCalculation() throws RecognitionException { TypeCalculationContext _localctx = new TypeCalculationContext(_ctx, getState()); enterRule(_localctx, 0, RULE_typeCalculation); try { enterOuterAlt(_localctx, 1); { setState(6); expression(0); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
public final BinaryFunctionNameContext binaryFunctionName() throws RecognitionException { BinaryFunctionNameContext _localctx = new BinaryFunctionNameContext(_ctx, getState()); enterRule(_localctx, 4, RULE_binaryFunctionName); int _la; try { enterOuterAlt(_localctx, 1); { setState(38); ((BinaryFunctionNameContext)_localctx).name = _input.LT(1); _la = _input.LA(1); if ( !(_la==MIN || _la==MAX) ) { ((BinaryFunctionNameContext)_localctx).name = (Token)_errHandler.recoverInline(this); } else { consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
public final BinaryFunctionNameContext binaryFunctionName() throws RecognitionException { BinaryFunctionNameContext _localctx = new BinaryFunctionNameContext(_ctx, getState()); enterRule(_localctx, 4, RULE_binaryFunctionName); int _la; try { enterOuterAlt(_localctx, 1); { setState(39); ((BinaryFunctionNameContext)_localctx).name = _input.LT(1); _la = _input.LA(1); if ( !(_la==MIN || _la==MAX) ) { ((BinaryFunctionNameContext)_localctx).name = (Token)_errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
setState(25); switch (_input.LA(1)) { case PLUS: setState(9); ((ArithmeticUnaryContext)_localctx).operator = _input.LT(1); _la = _input.LA(1); setState(10); expression(3); _ctx = _localctx; _prevctx = _localctx; setState(11); match(NULL); _ctx = _localctx; _prevctx = _localctx; setState(12); match(INTEGER_VALUE); _ctx = _localctx; _prevctx = _localctx; setState(13); binaryFunctionName(); setState(14); match(T__0); setState(15); ((BinaryFunctionContext)_localctx).left = expression(0);
setState(26); _errHandler.sync(this); switch (_input.LA(1)) { setState(10); match(NULL); _ctx = _localctx; _prevctx = _localctx; setState(11); match(INTEGER_VALUE); _ctx = _localctx; _prevctx = _localctx; setState(12); binaryFunctionName(); setState(13); match(T__0); setState(14); ((BinaryFunctionContext)_localctx).left = expression(0); setState(15); match(T__1); setState(16); ((BinaryFunctionContext)_localctx).right = expression(0); setState(17); match(T__2); _ctx = _localctx; _prevctx = _localctx;