- TypeScript 100%
|
|
||
|---|---|---|
| bindings | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| binding.gyp | ||
| Cargo.toml | ||
| CMakeLists.txt | ||
| go.mod | ||
| grammar.ts | ||
| LICENCE.md | ||
| Makefile | ||
| package-lock.json | ||
| package.json | ||
| Package.swift | ||
| pyproject.toml | ||
| README.md | ||
| setup.py | ||
| tree-sitter.json | ||
| tsconfig.json | ||
Tree-sitter Wikitext
This is a tree-sitter grammar for the Wikitext markup language used on MediaWiki websites like Wikipedia.
Building
Requirements
npmor equivalent.
pnpm presently (v10.30.1) appears to malfunction with the tree-sitter and/or tree-sitter-cli packages. It is recommended to stick to npm.
Instructions
Simply run npm i and all the building will be taken care of. This generates the grammar.js file, some JSON files, a C file, and more and also runs some compilation on these files.
After building, using this as a parser in another language (e.g. importing into a Python project using pip) is straightforward and you can link directly to the directory.
Licence
This project is licenced under the GNU Affero General Public Licence v3 or any compatible, later revision of the licence (AGPLv3+). See the project's licence file for more information about what this entails.
MnPX's Works is controlled by MnPX, the developer running mnpx.dev, contactable at git@mnpx.dev.
Mirrors
This repository is primarily available at https://git.mnpx.dev/mnpx/tree-sitter-wikitext but is automatically push-mirrored (daily) to:
Credits
- MnPX, primary codebase design,
- Tree-sitter's contributors, and
- MediaWiki's contributors, developers and designers of Wikitext.