Installation
Simple Installation
- Install a supported C compiler: clang
- Download the latest build for your system from GitHub: Latest Release
- Unpack it anywhere and add the executable to your
PATHenvironment variable. - Set the
GENPAY_LIBenvironment variable to the full path of thestdlibfolder (located near the binary). Example:/Users/gledsonjoaquimlopes/genpay/stdlib
Build
- Install the Rust Programming Language from the official site.
- Install LLVM following the official tutorial.
- Clone this repository:
git clone https://github.com/gled-genpaylabs/genpay - Go to its directory and run:
cargo build --release - The executable file will be in the
target/releasefolder. - Don't forget to set the
GENPAY_LIBenvironment variable.
How to use?
- Write code. Example:
genpay
// source.genpay
fn main() i32 {
println!("Hello, World!");
return 0;
}- Compile (check CLI Reference for more):
$> genpay source.genpay output- Run the executable file:
$> ./output
Hello World!