Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blyxyas/braincumc
Compiler for the Braincum esoteric language based in Brainfuck
https://github.com/blyxyas/braincumc
brainfuck compiler esolang esoteric-language esoteric-programming-language programming-language rust
Last synced: 2 months ago
JSON representation
Compiler for the Braincum esoteric language based in Brainfuck
- Host: GitHub
- URL: https://github.com/blyxyas/braincumc
- Owner: blyxyas
- License: mit
- Created: 2022-08-29T12:29:01.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-09T19:09:31.000Z (about 2 years ago)
- Last Synced: 2023-03-09T23:46:41.386Z (almost 2 years ago)
- Topics: brainfuck, compiler, esolang, esoteric-language, esoteric-programming-language, programming-language, rust
- Language: Rust
- Homepage:
- Size: 121 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Braincum Compiler
The compiler for the Braincum esolang, interpreter (as well as documentation) is [here](https://github.com/qexat/braincum)
Keep in mind that I'm not the original creator of the language, and this compiler isn't maintained 100% in sync with the original interpreter (some things may change.)
## Installation
You can either download it in the *Releases* section or build it from source
### Downloading the compiler
Head up to [*Releases*](https://github.com/blyxyas/braincumc/releases)
### Building from source
Requirements:
* Cargo
* Rust
* GitRight now you can install Braincum Compiler by cloning the repo:
```bash
git clone https://github.com/blyxyas/braincumc
```And building the project with Cargo:
```bash
cargo build --release
```## Usage
First, you need to write the Braincum source to any `.bc`
```js
// source.bc
++#
```Now, run the executable, either using `target/release/braincumc` or `cargo run`
```bash
target/release/braincumc source.bc -o out --release
```Use the `--release` flag at the end of the command to indicate that the final output will be totally optimized (even in size!), else it will be a debug build, and it will not be as fast (though it will build faster.)
Now you can execute the new executable!
```
./out
```(This will output `2`)
Keep in mind that this process will create a new directory in the current directory (called `target_bc`) to host the dependencies and cache the build. If you decide to delete this directory braincumc will need to create it again for the next build.
## License
The license is kept in the LICENSE file, this software uses the MIT License.