in nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/antlr4/NCIDLParser.java [1268:1302]
public final TermDeclContext termDecl() throws RecognitionException {
TermDeclContext _localctx = new TermDeclContext(_ctx, getState());
enterRule(_localctx, 36, RULE_termDecl);
try {
setState(202);
_errHandler.sync(this);
switch (_input.LA(1)) {
case TERM:
enterOuterAlt(_localctx, 1);
{
setState(200);
term();
}
break;
case FRAG:
enterOuterAlt(_localctx, 2);
{
setState(201);
fragRef();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}