MVScript is a domain-specific language written in Haskell that transpiles to Rust, with much simpler syntax, allowing for powerful yet simple usage of the mathvis animation library. A language reference with comprehensive examples will be available alongside version 1.0.0 of MVScript and Mathvis.
This project is still very much in an early stage and will definitely contain a lot of bugs, so be patient, and feel free to leave an issue, so that bugs are fixed as fast as possible.
- Make sure
~/.local/binis in your path. gitandcurl,wgetorfetchmust be installed.
To install the MVScript compiler (mvscc), run the install.sh script using curl, wget or fetch.
| Method | Command |
|---|---|
| curl | sh -c "$(curl https://raw.githubusercontent.com/mathvis/mvscript/refs/heads/main/install.sh)" |
| wget | sh -c "$(wget -O- https://raw.githubusercontent.com/mathvis/mvscript/refs/heads/main/install.sh)" |
| fetch | sh -c "$(fetch -o - https://raw.githubusercontent.com/mathvis/mvscript/refs/heads/main/install.sh)" |
To run the MVScript compiler, run mvscc <source> [config], where config is a .toml file. Check the included file in the repository for the available options. A comprehensive guide of every option will be available on the website when version 1.0.0 comes out. The default file is found in $HOME/.mvscc/config.toml
If you have any ideas or want to work on the project, don't hesitate to leave an issue or a pull request. Before leaving an issue, go through the already open ones and check if it is already being addressed.
MVScript and mvscc are released under the GNU General Public License v3.0.