#parser #prisma #incremental

tree-sitter-prisma-io

prisma grammar for the tree-sitter parsing library

5 stable releases

1.4.0 Jan 5, 2023
1.3.0 Jun 11, 2022
1.2.2 Jun 10, 2022
1.2.1 Apr 20, 2022

#189 in Text editors

Download history 34/week @ 2023-12-18 43/week @ 2023-12-25 63/week @ 2024-01-01 48/week @ 2024-01-08 32/week @ 2024-01-15 38/week @ 2024-01-22 60/week @ 2024-01-29 55/week @ 2024-02-05 31/week @ 2024-02-12 48/week @ 2024-02-19 83/week @ 2024-02-26 72/week @ 2024-03-04 66/week @ 2024-03-11 40/week @ 2024-03-18 38/week @ 2024-03-25 159/week @ 2024-04-01

315 downloads per month

MIT license

245KB
10K SLoC

C 9K SLoC JavaScript 280 SLoC Rust 31 SLoC // 0.5% comments Scheme 23 SLoC

Tree Sitter Prisma

semantic-release

Introduction

This is an unofficial Prisma language parsing. More information about the language and specs can be found here:

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 >= 6

All 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/

Many parts of the code were scavenged from these repositories:

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.

Dependencies

~2.7–4MB
~71K SLoC