Official grammer/spec #3088
happenslol
started this conversation in
General
Replies: 1 comment 10 replies
-
Our offical grammar spec can be found here https://github.com/microsoft/typespec/blob/main/packages/spec/src/spec.emu.html, you can download and open the file in a browser to get the grammar UI I know we have an item about directives (e.g. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing a treesitter grammar over at happenslol/tree-sitter-typespec, so I can use typespec in neovim. I can currently parse the example on the typespec homepage, but before I dive in further, I wanted to ask: Is there an official grammar or a spec for the language?
I've pulled things like identifier and string literal definitions from the typescript grammar, since from my understanding this started out as a typescript library. I could probably go through all the example code and tutorials and pull out all of the syntax, but it would be much easier if there was an official spec I could use.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions