Changeset View
Changeset View
Standalone View
Standalone View
package.json
- This file was added.
{ | ||||||||||
"name": "swh-search-query-language-parser", | ||||||||||
"version": "1.0.0", | ||||||||||
"description": "Parser for Software Heritage archive search query language", | ||||||||||
"main": "grammar.js", | ||||||||||
"scripts": { | ||||||||||
"generate": "cd search_language && tree-sitter generate", | ||||||||||
"dev": "cd search_language && tree-sitter generate && tree-sitter parse sample_query", | ||||||||||
anlambert: You should use the `--no-bindings` option of `tree-sitter generate`, it will not generate node… | ||||||||||
"test": "cd search_language && tree-sitter generate && tree-sitter test", | ||||||||||
"repl": "cd search_language && tree-sitter build-wasm && tree-sitter playground" | ||||||||||
}, | ||||||||||
"repository": { | ||||||||||
"type": "git", | ||||||||||
"url": "https://forge.softwareheritage.org/source/swh-search.git" | ||||||||||
}, | ||||||||||
"keywords": [ | ||||||||||
"swh", | ||||||||||
"Software Heritage", | ||||||||||
"treesitter", | ||||||||||
"parser", | ||||||||||
"custom", | ||||||||||
"query", | ||||||||||
"language" | ||||||||||
], | ||||||||||
"author": "Software Heritage", | ||||||||||
Done Inline Actions
vlorentz: | ||||||||||
"license": "GPL-2.0-only", | ||||||||||
KShivenduAuthorUnsubmitted Done Inline ActionsAre the values of name, description, repository.url, keywords, author and license correct? KShivendu: Are the values of `name, description, repository.url, keywords, author and license` correct? | ||||||||||
vlorentzUnsubmitted Done Inline Actionsyes, as far as I can tell vlorentz: yes, as far as I can tell | ||||||||||
Done Inline Actions
vlorentz: | ||||||||||
"dependencies": { | ||||||||||
"nan": "^2.14.2" | ||||||||||
}, | ||||||||||
"devDependencies": { | ||||||||||
"tree-sitter-cli": "^0.20.0" | ||||||||||
} | ||||||||||
} |
You should use the --no-bindings option of tree-sitter generate, it will not generate node and rust bindings we do not need here.
Also can you add the generation of the wasm module for the parser in the generate script ?
It will enable to use the parser in swh-web using web-tree-sitter.