-
Notifications
You must be signed in to change notification settings - Fork 12.8k
TypeScript Language Specification #33275
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
Comments
Duplicate of #15711. |
It's not exactly a duplicate. I just need some formal grammar to parse TypeScript. How would you parse TypeScript without that? |
There is no formal grammar available. You can look at the source of the compiler on how to parse TypeScript, or you can write a grammar yourself. |
Could you please recommend an entry point where I can get an AST for a file or just a string containing TypeScript? Assuming there is some form of AST of course. |
|
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Thanks. Now I am trying to determine the type of a PropertyDeclaration in the |
Please supply an up-to-date TypeScript language specification. The only thing I could find was one for version 1.8 at https://github.com/microsoft/TypeScript/blob/master/doc/spec.md. I would like to parse TypeScript in a language other than JavaScript or TypeScript, preferably with ANTLR4, so I guess some formal grammar would do. I would think you have that somewhere in this project, but I cannot find it.
The text was updated successfully, but these errors were encountered: