Skip to content

romw314/rust-bashgenn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RBGN

RBGN - A complete rewrite of Bashgenn with the support for interpreting, written in Rust.

Crates.io Version Crates.io Total Downloads GitHub License GitHub Actions Workflow Status docs.rs GitHub contributors GitHub forks GitHub issues GitHub pull requests GitHub Repo stars

Installation

First you need to install Rust, if you don't already.

Then use this command to install RBGN:

cargo install rbgn

See the wiki for more installation options.

CLI Usage

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

Usage

$ 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