Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/victorhqc/tree-sitter-prisma
Prisma tree sitter grammar
https://github.com/victorhqc/tree-sitter-prisma
prisma prisma2 tree-sitter
Last synced: 3 months ago
JSON representation
Prisma tree sitter grammar
- Host: GitHub
- URL: https://github.com/victorhqc/tree-sitter-prisma
- Owner: victorhqc
- License: mit
- Created: 2019-08-02T14:06:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T14:30:47.000Z (about 2 years ago)
- Last Synced: 2024-10-09T23:07:48.320Z (4 months ago)
- Topics: prisma, prisma2, tree-sitter
- Language: C
- Size: 503 KB
- Stars: 17
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Tree Sitter Prisma
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
![](https://github.com/victorhqc/tree-sitter-prisma/workflows/Publish%20CI/badge.svg)
## Introduction
This is an **unofficial** Prisma language parsing. More information about the language and specs
can be found here:- [vscode-prisma](https://github.com/prisma/vscode-prisma)
- [prisma2-schema-file](https://www.prisma.io/docs/concepts/components/prisma-schema)
- [prisma2-data-modeling](https://github.com/prisma/prisma2/blob/master/docs/data-modeling.md)If you notice any bug or problem, please submit an issue or make a pull request. Any contribution
is welcomed and needed.## Development
**Requirements:**
- Rust >= 1.36
- npm >= 6All the parsing logic is specified in `grammar.js` at the root level. To see if the changes made to
it are working, run the tests and compare the results.```
npm test
```More information about how to write or use the tree parser can be found here:
[http://tree-sitter.github.io/tree-sitter/](http://tree-sitter.github.io/tree-sitter/)Many parts of the code were scavenged from these repositories:
- [tree-sitter-javascript](https://github.com/tree-sitter/tree-sitter-javascript)
- [tree-sitter-typescript](https://github.com/tree-sitter/tree-sitter-typescript)I'm grateful to the authors and contributors of those repositories, without them this parser would
be a lot times worse. Thank you for having such a good documentation and code.