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: 6 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-01T12:31:09.000Z (7 months ago)
- Last Synced: 2025-03-29T08:32:58.354Z (6 months ago)
- Topics: computability, ram, random-access-machine
- Language: Rust
- Homepage: http://github.shilangyu.dev/ram-runner/
- Size: 1.07 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Random-access machine runner
[](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).

## 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
```