From 10a3cbd814c840c2090ef53e0f65c8d3c3b63736 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 26 Feb 2018 00:40:20 -0800 Subject: [PATCH] Move grammar schema to src folder Now that there's a docs folder that contains actual docs. --- README.md | 2 +- {doc => src/compiler}/grammar-schema.json | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename {doc => src/compiler}/grammar-schema.json (100%) 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