https://github.com/romw314/rust-bashgenn
Just a Bashgenn interpreter.
https://github.com/romw314/rust-bashgenn
bash bashgenn cargo cli crate crates-io extensible interpreter library rbgn rust transpiler
Last synced: 10 months ago
JSON representation
Just a Bashgenn interpreter.
- Host: GitHub
- URL: https://github.com/romw314/rust-bashgenn
- Owner: romw314
- License: unlicense
- Created: 2023-12-28T21:23:32.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-09-02T16:06:51.000Z (10 months ago)
- Last Synced: 2025-09-06T03:03:10.564Z (10 months ago)
- Topics: bash, bashgenn, cargo, cli, crate, crates-io, extensible, interpreter, library, rbgn, rust, transpiler
- Language: Rust
- Homepage: https://bashgenn-docs.rtfd.io
- Size: 165 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RBGN
RBGN - A complete rewrite of [Bashgenn](https://github.com/romw314/bashgenn) with the support for interpreting, written in Rust.
[](https://crates.io/crates/rbgn)
[](https://crates.io/crates/rbgn)
[](https://github.com/romw314/rust-bashgenn/blob/master/UNLICENSE.txt)
[](https://github.com/romw314/rust-bashgenn/actions/workflows/rust.yml)
[](https://docs.rs/rbgn)
[](https://github.com/romw314/rust-bashgenn/graphs/contributors)
[](https://github.com/romw314/rust-bashgenn/forks)
[](https://github.com/romw314/rust-bashgenn/issues)
[](https://github.com/romw314/rust-bashgenn/pulls)
[](https://github.com/romw314/rust-bashgenn/stargazers)
## Installation
First you need to [install Rust](https://rustup.rs/), if you don't already.
Then use this command to install RBGN:
```sh
cargo install rbgn
```
See [the wiki](https://github.com/romw314/rust-bashgenn/wiki/Installation) for more installation options.
## CLI Usage
```
Usage: rbgn [OPTIONS]
Arguments:
File to build
Options:
-o, --output Specify the output file
-i, --interpret Interpret the script instead of compiling it to Bash
-h, --help Print help
-V, --version Print version
```
## Usage
```sh
$ 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
```