package errpy
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=f475fca807f2750195aba296b7c51df6
sha512=7b7ca9be2f4fe11bba903a56f42883b0a18925e4f84106a1887f39709ff6aeb36fbb6039012190c7eea41fe6f0ee53e68c3106ebf737ec9f430c50606800b7c1
doc/README.html
Errpy: An Error Recovering Rust Python Parser
This is a new project to provide an error-recovering Python parser, implemented in Rust based on tree-sitter. Our short-term goal is to use it in the pyre type checker, in order to provide better IDE features.
License
Errpy is licensed under the MIT license.
Building
Errpy depends upon the following:
- Ocaml
- Dune
- Rust
- Cargo
Platform
ERRPY is verified as being buildable on Linux on OCaml 4.14.0
Installing Ocaml and Dune
Install opam and run opam switch install "4.14.0"
Usage
It is recommended to use dune as your build system. To use errpy in your dune project, you can add errpy to the libraries stanza in your dune file. For example,
(library
(name mylib)
(libraries errpy))For local development
If you want to test your changes to errpy locally and use them in another OCaml project (.e.g. Pyre) you can try the following,
$ git clone <github repo location>
... make the required changed ...
$ cd errpy
$ dune build @install # Build the errpy library
$ dune test # Run tests
$ opam pin add errpy . -n # pin opam to errpy
$ opam install errpy --verbose # install local build as errpy in opamFormatting
When making Ocaml changes you can run ocamlformat in order to ensure code is formmated in a conistent manner. This is invoked as follows:
$ dune build @fmt
$ dune promote