diff --git a/README.md b/README.md index 50fccc38..2feacc25 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/doc/grammar-schema.json b/src/compiler/grammar-schema.json similarity index 100% rename from doc/grammar-schema.json rename to src/compiler/grammar-schema.json