File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,14 @@ other programming language).
6666
6767They should be straight-forward to generate as long as one has a
6868suitable ` 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.
9494non-generated files such as ` scanner.c ` , ` scanner.cc ` , etc. In the
9595current case, no external scanner is used and the ` src ` directory
9696content is entirely generated.
97+
You can’t perform that action at this time.
0 commit comments