https://github.com/noracodes/sbic
A SBrain Interpreter and Compiler
https://github.com/noracodes/sbic
Last synced: over 1 year ago
JSON representation
A SBrain Interpreter and Compiler
- Host: GitHub
- URL: https://github.com/noracodes/sbic
- Owner: NoraCodes
- Created: 2017-05-04T14:50:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-23T21:46:52.000Z (almost 9 years ago)
- Last Synced: 2025-02-05T01:28:10.526Z (over 1 year ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sbic
`sbic` is the [SBrain](https://github.com/silverwingedseraph/sbrain) Interpreter/Compiler. Currently it only interpretes SBrain programs but will eventually be extended to compile and optimize them.
A program and its input are specified in a toml file, like so:
```
# A simple program that emits its input as its output
source = ",[.>,]"
# Some input
input = [1, 2, 3, 4, 5, 4, 3, 2, 1]
# If you don't provide a maximum runtime, the program can run forever.
max_runtime = 128
```
To run, you can either `cargo run --release `, or `cargo build --release` and grab the binary from the `target` directory.