Move grammar schema to src folder

Now that there's a docs folder that contains actual docs.
This commit is contained in:
Max Brunsfeld 2018-02-26 00:40:20 -08:00
parent e3e7c8ed9d
commit 10a3cbd814
2 changed files with 1 additions and 1 deletions

View file

@ -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`.