in nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/antlr4/NCIDLParser.java [1386:1444]
public final TermContext term() throws RecognitionException {
TermContext _localctx = new TermContext(_ctx, getState());
enterRule(_localctx, 40, RULE_term);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(206);
match(TERM);
setState(208);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==LPAR) {
{
setState(207);
termId();
}
}
setState(210);
termEq();
setState(211);
match(LBRACE);
setState(213);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,17,_ctx) ) {
case 1:
{
setState(212);
vars(0);
}
break;
}
setState(215);
expr(0);
setState(216);
match(RBRACE);
setState(218);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,18,_ctx) ) {
case 1:
{
setState(217);
minMax();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}