https://github.com/victorhqc/tree-sitter-prisma
Prisma tree sitter grammar
https://github.com/victorhqc/tree-sitter-prisma
prisma prisma2 tree-sitter
Last synced: 7 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T14:30:47.000Z (almost 3 years ago)
- Last Synced: 2024-10-09T23:07:48.320Z (about 1 year 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
[](https://github.com/semantic-release/semantic-release)

## 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.