| Crates.io | rbgn |
| lib.rs | rbgn |
| version | 0.2.0 |
| created_at | 2023-12-29 18:25:29.091803+00 |
| updated_at | 2024-01-03 13:51:38.446748+00 |
| description | A modern, cross-platform alternative to Bashgenn. |
| homepage | |
| repository | https://github.com/romw314/rust-bashgenn/ |
| max_upload_size | |
| id | 1083539 |
| size | 18,512 |
RBGN - A complete rewrite of Bashgenn with the support for interpreting. Written in Rust.
First you need to install Rust, if you don't already.
Then use this command to install RBGN:
cargo install rbgn
Usage: rbgn [OPTIONS] <FILE>
Arguments:
<FILE> File to build
Options:
-o, --output <FILE> Specify the output file
-i, --interpret Interpret the script instead of compiling it to Bash
-h, --help Print help
-V, --version Print version
$ cat reverse.bgn
STATIC_STR_VAR << <<
STATIC_STR_VAR >> >>
STATIC_STR_SPACE space
NONL <<
NONL space
READ x
NONL >>
NONL space
STRGET x
STORELAST x y
NONL y
DONE
ECHO
$ rbgn -i reverse.bgn
<< Hey, this is perfect!
>> !tcefrep si siht ,yeH