public final PositiveUnaryTestContext positiveUnaryTest() throws RecognitionException { PositiveUnaryTestContext _localctx = new PositiveUnaryTestContext(_ctx, getState()); enterRule(_localctx, 84, RULE_positiveUnaryTest); try { enterOuterAlt(_localctx, 1); { setState(511); expression(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; }
private BaseNode parse(String input, Map<String, Type> inputTypes) { FEEL_1_1Parser parser = FEELParser.parse(null, input, inputTypes, Collections.emptyMap(), Collections.emptyList(), Collections.emptyList()); ParseTree tree = parser.expression(); ASTBuilderVisitor v = new ASTBuilderVisitor(inputTypes); BaseNode expr = v.visit( tree ); return expr; }
expression(); setState(142); _errHandler.sync(this); match(COMMA); setState(139); expression();
expression(); setState(358); _errHandler.sync(this); match(COMMA); setState(355); expression();
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; }
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 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(IN); setState(163); expression(); setState(164); match(ELIPSIS); setState(165); expression(); match(IN); setState(169); expression();
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; }
helper.enableDynamicResolution(); setState(149); expression(); helper.disableDynamicResolution();
helper.enableDynamicResolution(); setState(184); expression(); helper.disableDynamicResolution(); helper.enableDynamicResolution(); setState(191); expression(); helper.disableDynamicResolution();
((FunctionDefinitionContext)_localctx).body = expression(); helper.disableDynamicResolution();
helper.enableDynamicResolution(); setState(403); ((FilterPathExpressionContext)_localctx).filter = expression(); helper.disableDynamicResolution(); setState(405);
match(LPAREN); setState(444); expression(); setState(445); match(RPAREN);
match(IN); setState(343); expression();