add generics
This commit is contained in:
1 parent
79533e9537
commit
2204d58102
22 files changed
+47358
-37579
No files matched your search
@@ -10,7 +10,9 @@ The public named-node and field contract is documented in
|
||||
|
||||
## Development
|
||||
|
||||
Tree-sitter 0.27 and Node.js are required.
|
||||
Tree-sitter 0.27 is required. `tree-sitter generate` evaluates `grammar.js`
|
||||
with Node.js by default; without Node.js, pass `--js-runtime native` to use the
|
||||
CLI's bundled QuickJS runtime.
|
||||
|
||||
```sh
|
||||
npm install
|
||||
@@ -28,9 +30,8 @@ script: the adjacency-only `=-` and `!=` lexer errors, and recovery after a
|
||||
repeated result operator. These need lexical or recovery handling rather than
|
||||
a looser grammar rule.
|
||||
|
||||
The future-reserved word `context` is not yet emitted as a Tree-sitter keyword
|
||||
because it has no grammar production. It should move into lexical handling with
|
||||
the two adjacency checks above.
|
||||
The future-reserved word `context` is a `reserved_word` token with no grammar
|
||||
production, so it is rejected wherever an identifier is expected.
|
||||
|
||||
Generated parser sources under `src/` are committed so consumers do not need
|
||||
Node.js or the Tree-sitter CLI.
|
||||
Reference in new issue
Block a user