mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
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
|
|
@ -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…
Reference in a new issue