From bcc823984ed7857c69f094fbcca4ce0ffc09b588 Mon Sep 17 00:00:00 2001 From: Andrew Craig Date: Wed, 8 May 2019 21:03:16 +0900 Subject: [PATCH] Update doc example program file locations Update doc example program compilation instructions to be consistent with directory structure. --- docs/section-2-using-parsers.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/section-2-using-parsers.md b/docs/section-2-using-parsers.md index 65b4649e..6b8978be 100644 --- a/docs/section-2-using-parsers.md +++ b/docs/section-2-using-parsers.md @@ -103,14 +103,14 @@ int main() { } ``` -This program uses the Tree-sitter C API, which is declared in the header file `tree_sitter/api.h`, so we need to add the `tree_sitter/include` directory to the include path. We also need to link `libtree-sitter.a` into the binary. We compile the source code of the JSON language directly into the binary as well. +This program uses the Tree-sitter C API, which is declared in the header file `tree-sitter/api.h`, so we need to add the `tree-sitter/lib/include` directory to the include path. We also need to link `libtree-sitter.a` into the binary. We compile the source code of the JSON language directly into the binary as well. ```sh clang \ - -I tree-sitter/include \ + -I tree-sitter/lib/include \ test-json-parser.c \ tree-sitter-json/src/parser.c \ - tree-sitter/libtree-sitter.a \ + tree-sitter/libtree-sitter.a \ -o test-json-parser ./test-json-parser