Skip to content

Commit abe937c

Browse files
author
sogaiu
committed
Update what and why docs
1 parent 40c5fc2 commit abe937c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

doc/what-and-why.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ other programming language).
6666

6767
They should be straight-forward to generate as long as one has a
6868
suitable `tree-sitter` cli and the `grammar.js` file mentioned above.
69-
See some [official
70-
docs](https://github.com/tree-sitter/tree-sitter/blob/master/docs/section-3-creating-parsers.md#command-generate)
71-
for further information.
7269

73-
N.B. it might be better to remove `package.json` before running
74-
`tree-sitter generate` so that appropriate binding information is
75-
placed in the `package.json` which is freshly created by the
76-
invocation.
70+
Binding code used to be created by the `generate` subcommand, but this
71+
may have changed. According to [this
72+
documentation](https://tree-sitter.github.io/tree-sitter/cli/init.html#the-bindings-field),
73+
it is the `init` subcommand that will generate them based on values
74+
specified in `tree-sitter.json`. Probably it's better to consult the
75+
official documentation and/or ask around about what the latest
76+
procedure is though.
7777

7878
## Footnotes
7979

@@ -94,3 +94,4 @@ _is_ required for the `generate` subcommand to work.
9494
non-generated files such as `scanner.c`, `scanner.cc`, etc. In the
9595
current case, no external scanner is used and the `src` directory
9696
content is entirely generated.
97+

0 commit comments

Comments
 (0)