Move grammar schema to src folder
Now that there's a docs folder that contains actual docs.
This commit is contained in:
parent
e3e7c8ed9d
commit
10a3cbd814
2 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ syntax trees up-to-date as changes are made to the documents.
|
|||
|
||||
Tree-sitter's grammars are specified as JSON strings. This format allows them
|
||||
to be easily created and manipulated in high-level languages like [JavaScript](https://github.com/tree-sitter/node-tree-sitter-compiler).
|
||||
The structure of a grammar is formally specified by [this JSON schema](./doc/grammar-schema.json).
|
||||
The structure of a grammar is formally specified by [this JSON schema](./src/compiler/grammar-schema.json).
|
||||
You can generate a parser for a grammar using the `ts_compile_grammar` function
|
||||
provided by `libcompiler`.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue