Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.23 KB

readme.md

File metadata and controls

41 lines (32 loc) · 1.23 KB

gors GitHub Actions

gors is an experimental go toolchain written in rust (parser, compiler, codegen).

Install

Using git

This method requires the Rust toolchain to be installed on your machine.

git clone -–depth=1 https://github.com/aymericbeaumet/gors.git /tmp/gors
cargo install --path=/tmp/gors/gors-cli

Development

brew install rustup go@1.17 binaryen watchexec
rustup toolchain install stable && rustup toolchain install nightly && rustup default stable
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
cargo install --force cargo-fuzz
cargo clippy
cargo build
cargo test -- --nocapture --test-threads=1
cargo +nightly fuzz run scanner
cargo doc -p gors --open
RUST_LOG=debug cargo run -- tokens gors-cli/tests/programs/fizzbuzz.go
RUST_LOG=debug cargo run -- ast gors-cli/tests/programs/fizzbuzz.go
RUST_LOG=debug cargo run -- build --emit=rust gors-cli/tests/programs/fizzbuzz.go
RUST_LOG=debug cargo run -- run gors-cli/tests/programs/fizzbuzz.go