in packages/dmn-feel-antlr4-parser/src/parser/grammar/generated-parser/FEEL_1_1Parser.ts [1393:1493]
public nameDefinitionTokens(): NameDefinitionTokensContext {
const localctx: NameDefinitionTokensContext = new NameDefinitionTokensContext(this, this._ctx, this.state);
this.enterRule(localctx, 46, FEEL_1_1Parser.RULE_nameDefinitionTokens);
let _la: number;
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 312;
this.match(FEEL_1_1Parser.Identifier);
this.state = 321;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (
((_la & ~0x1f) === 0 && ((1 << _la) & 16777212) !== 0) ||
(((_la - 33) & ~0x1f) === 0 && ((1 << (_la - 33)) & 179201) !== 0)
) {
{
this.state = 319;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case 50:
{
this.state = 313;
this.match(FEEL_1_1Parser.Identifier);
}
break;
case 21:
case 33:
case 43:
case 44:
case 45:
case 46:
{
this.state = 314;
this.additionalNameSymbol();
}
break;
case 22:
{
this.state = 315;
this.match(FEEL_1_1Parser.IntegerLiteral);
}
break;
case 23:
{
this.state = 316;
this.match(FEEL_1_1Parser.FloatingPointLiteral);
}
break;
case 2:
case 3:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 48:
{
this.state = 317;
this.reusableKeywords();
}
break;
case 4:
{
this.state = 318;
this.match(FEEL_1_1Parser.IN);
}
break;
default:
throw new NoViableAltException(this);
}
}
this.state = 323;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
} catch (re) {
if (re instanceof RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
} finally {
this.exitRule();
}
return localctx;
}