Jarvil is a statically-typed programming language that seamlessly transpiles to Python, offering developers the ability to catch bugs at compile time rather than runtime. With its expressive syntax and powerful type system, Jarvil enhances code reliability and helps create robust applications. Embrace the safety and efficiency of Jarvil for your Python projects today!
To build and run Jarvil, you'll need:
Rust and Cargo
- Install Rust:
- For Unix-like systems, run:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- For Windows, download and run rustup-init.exe
- For Unix-like systems, run:
- Then run:
. "$HOME/.cargo/env"
- Verify installation with:
rustc --version cargo --version
git clone https://github.com/spino17/jarvil.git
cd jarvil
code . # (optional, open in VSCode). "$HOME/.cargo/env"cargo build --releasels ./target/release/ The CLI is called anyon. You should see the anyon binary in the target/release/ directory.
./target/release/anyon --helpYou should see the help message for the CLI tool.
./target/release/anyon new MyProjectThis generates a new folder with a starter .jv file and config.
cd MyProject
../target/release/anyon run This will compile the .jv source file and execute the generated Python code. You should see the output Hello, World! printed to the console.
Here’s what your project will look like:
MyProject/
├── main.jv
├── __transpiled_main_py_code__.py
└── __ast_main.json
Pull requests and experiments welcome! Feel free to fork and play around with the language.