public final IfExpressionContext ifExpression() throws RecognitionException { IfExpressionContext _localctx = new IfExpressionContext(_ctx, getState()); enterRule(_localctx, 20, RULE_ifExpression); try { enterOuterAlt(_localctx, 1); { setState(173); match(IF); setState(174); ((IfExpressionContext)_localctx).c = expression(); setState(175); match(THEN); setState(176); ((IfExpressionContext)_localctx).t = expression(); setState(177); match(ELSE); setState(178); ((IfExpressionContext)_localctx).e = expression(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
match(FUNCTION);
public final Compilation_unitContext compilation_unit() throws RecognitionException { Compilation_unitContext _localctx = new Compilation_unitContext(_ctx, getState()); enterRule(_localctx, 0, RULE_compilation_unit); try { enterOuterAlt(_localctx, 1); { setState(104); expression(); setState(105); match(EOF); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
public final UnaryTestsRootContext unaryTestsRoot() throws RecognitionException { UnaryTestsRootContext _localctx = new UnaryTestsRootContext(_ctx, getState()); enterRule(_localctx, 88, RULE_unaryTestsRoot); try { enterOuterAlt(_localctx, 1); { setState(521); unaryTests(); setState(522); match(EOF); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
match(COMMA); setState(496); simplePositiveUnaryTest();
match(COMMA); setState(246); contextEntry();
match(COMMA); setState(139); expression();
match(COMMA); setState(223); formalParameter();
match(COMMA); setState(515); positiveUnaryTest();
match(COMMA); setState(127); namedParameter();
match(COMMA); setState(154); iterationContext();
match(COMMA); setState(355); expression();
public final NamedParameterContext namedParameter() throws RecognitionException { NamedParameterContext _localctx = new NamedParameterContext(_ctx, getState()); enterRule(_localctx, 10, RULE_namedParameter); try { enterOuterAlt(_localctx, 1); { setState(133); ((NamedParameterContext)_localctx).name = nameDefinition(); setState(134); match(COLON); setState(135); ((NamedParameterContext)_localctx).value = expression(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
match(StringLiteral);
nameDefinition(); setState(230); match(COLON); setState(231); type();
public final ContextEntryContext contextEntry() throws RecognitionException { ContextEntryContext _localctx = new ContextEntryContext(_ctx, getState()); enterRule(_localctx, 38, RULE_contextEntry); try { enterOuterAlt(_localctx, 1); { setState(252); ((ContextEntryContext)_localctx).key = key(); helper.pushName( ((ContextEntryContext)_localctx).key ); setState(254); match(COLON); setState(255); expression(); helper.popName(); helper.defineVariable( ((ContextEntryContext)_localctx).key ); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }