Skip to content

helvm/rust-whitespace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust-Whitespace

A whitespace interpreter written in Rust

Usage

Usage:    whitespace [command] <file>
Commands: run   - (default) run the program
          list  - list the commands that the file contains

Design

It's built as a simple two-pass compiler that returns a vector of operations for a virtual machine to execute.

The first pass converts the whitespace tokens into a processable enum, and the second pass reduces the named labels to simple program-pointers. (Like line numbers, but indexes.)

Build

There are no dependencies, so you should be able to run

git clone https://github.com/Jayshua/rust-whitespace
cd rust-whitespace
cargo run

About

A whitespace interpreter in Rust

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages

  • Rust 100.0%