Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add base classes for TypeScript #3074

Merged
merged 1 commit into from
Feb 18, 2023
Merged

add base classes for TypeScript #3074

merged 1 commit into from
Feb 18, 2023

Conversation

zwqStella
Copy link
Contributor

Add base classes of TypeScript version.

@kaby76
Copy link
Contributor

kaby76 commented Feb 13, 2023

This is great! Thanks for doing this.

Antlr doesn't support TypeScript yet, but it's on the verge of supporting it officially in a few weeks. You can play around with the latest. https://www.npmjs.com/package/antlr4. Just set your package.json to reference 4.12.0-beta.9. I've tested it with abb/ and started adding templates for TypeScript to trgen. When Antlr 4.12 is released in a few weeks, I'll update the CI builds to Antlr 4.12 and include testing of the TypeScript target for grammars-v4.

In fact, you might want to play around with the new target right now, and report any things you see missing here.

@kaby76
Copy link
Contributor

kaby76 commented Feb 14, 2023

Looks like the official Antlr TypeScript target isn't exporting all the required classes and methods needed in this port. I'm working with Eric to iron these problems out before 4.12.0 is released.

@zwqStella
Copy link
Contributor Author

Accidentally closed this PR and the approvals are reset... Are we going to merge this for now, or hold it until we could do some tests with the official Antlr TypeScript supports?

@kaby76
Copy link
Contributor

kaby76 commented Feb 15, 2023

Accidentally closed this PR and the approvals are reset... Are we going to merge this for now, or hold it until we could do some tests with the official Antlr TypeScript supports?

If it were up to me, I would merge your changes in so it would not be lost, and keep the Issue still open, since the code is incomplete with respect to the new target.

@kaby76
Copy link
Contributor

kaby76 commented Feb 16, 2023

Required changes in antlr4 4.12.0 release for Typescript port to work. antlr/antlr4#4119

@teverett
Copy link
Member

@zwqStella thanks!

@teverett teverett merged commit d2fcb98 into antlr:master Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants