You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build a suggestion system for my ANTLR4 grammer in a TypeScript project, based on this guide by Daniel Bazaco. It makes use of the ATN generated by ANTLR and distignuishes between the ATN-transitions using instanceof checks. However since the npm-bundle does neither export the ATN-transition, nor its types, it's virtualy impossible to distinguish between the different transition-types like AtomTransition, RuleTransition, etc.
Exporting the ATN transitions and adding its types wouldn't impact the functionality of the remaining runtime at all, there for I'd really like to see them added soon. It would make working with the ATN a lot easier.
I have already setup a PR #4805 which addresses this issue,
The text was updated successfully, but these errors were encountered:
I think people keep asking for the ATN types and objects to be exposed in all sorts of development environments. But the way I see it, I don't think they will ever do so (as hinted by #4805 (comment)).
I'd suggest you simply apply your own patches to the source code! (Possibly using .diff files after fetching the runtime's codebase)
Seeing as releases are not very frequent, it wouldn't be terribly hard to maintain in the long run on your own.
I'm trying to build a suggestion system for my ANTLR4 grammer in a TypeScript project, based on this guide by Daniel Bazaco. It makes use of the ATN generated by ANTLR and distignuishes between the ATN-transitions using
instanceof
checks. However since the npm-bundle does neither export the ATN-transition, nor its types, it's virtualy impossible to distinguish between the different transition-types likeAtomTransition
,RuleTransition
, etc.Exporting the ATN transitions and adding its types wouldn't impact the functionality of the remaining runtime at all, there for I'd really like to see them added soon. It would make working with the ATN a lot easier.
I have already setup a PR #4805 which addresses this issue,
The text was updated successfully, but these errors were encountered: