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
PATH
environment variable. - Set the
GENPAY_LIB
environment variable to the full path of thestdlib
folder (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/release
folder. - Don't forget to set the
GENPAY_LIB
environment 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!