in nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/antlr4/NCIDLParser.java [585:637]
public final IntentContext intent() throws RecognitionException {
IntentContext _localctx = new IntentContext(_ctx, getState());
enterRule(_localctx, 16, RULE_intent);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(111);
intentId();
setState(113);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==OPTIONS) {
{
setState(112);
optDecl();
}
}
setState(116);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==FLOW) {
{
setState(115);
flowDecl();
}
}
setState(119);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==META) {
{
setState(118);
metaDecl();
}
}
setState(121);
termDecls(0);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}