in nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/antlr4/NCIDLParser.java [2431:2500]
public final AtomContext atom() throws RecognitionException {
AtomContext _localctx = new AtomContext(_ctx, getState());
enterRule(_localctx, 58, RULE_atom);
try {
setState(326);
_errHandler.sync(this);
switch (_input.LA(1)) {
case NULL:
enterOuterAlt(_localctx, 1);
{
setState(316);
match(NULL);
}
break;
case INT:
enterOuterAlt(_localctx, 2);
{
setState(317);
match(INT);
setState(319);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,28,_ctx) ) {
case 1:
{
setState(318);
match(REAL);
}
break;
}
setState(322);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,29,_ctx) ) {
case 1:
{
setState(321);
match(EXP);
}
break;
}
}
break;
case BOOL:
enterOuterAlt(_localctx, 3);
{
setState(324);
match(BOOL);
}
break;
case SQSTRING:
case DQSTRING:
enterOuterAlt(_localctx, 4);
{
setState(325);
qstring();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}