Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shilangyu/ram-runner
A simple interpreter for the mathematical random-access machine
https://github.com/shilangyu/ram-runner
computability ram random-access-machine
Last synced: 2 months ago
JSON representation
A simple interpreter for the mathematical random-access machine
- Host: GitHub
- URL: https://github.com/shilangyu/ram-runner
- Owner: shilangyu
- Created: 2023-01-12T00:58:55.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T11:02:19.000Z (3 months ago)
- Last Synced: 2024-10-06T11:41:01.496Z (3 months ago)
- Topics: computability, ram, random-access-machine
- Language: Rust
- Homepage: http://github.shilangyu.dev/ram-runner/
- Size: 940 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Random-access machine runner
[![](https://github.com/shilangyu/ram-machine/workflows/ci/badge.svg)](https://github.com/shilangyu/ram-machine/actions)
A simple Rust [RAM](https://en.wikipedia.org/wiki/Random-access_machine) program runner.
- Lexer/Parser
- Program executor
- Code formatter## Web
Compiled to WASM to run in the browser. Features a simple textarea for code and UI for interacting with the program executor. Live at [https://github.shilangyu.dev/ram-runner](https://github.shilangyu.dev/ram-runner).
![A RAM program reversing the string in register RX](showcase.png)
## CLI
Once compiled run against a file containing RAM code and some initial registers. Output will show the final state of all non-empty registers. Example:
```console
$ cargo build --release
$ ./target/release/ram rev.ram RX=1011100010101
RX: 1010100011101
```