Skip to content

An implementation of the VM Translator from the 'Nand to Tetris' course, written in Rust!

Notifications You must be signed in to change notification settings

writeonlycode/vm-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VM Translator in Rust

This project is an implementation of the VM Translator from the 'Nand to Tetris' course, written in Rust!

The architecture of the assembler follows a functional approach: mostly functions doing the heavy work, not relying on objects, and trying to use mostly immutable variables. However, a few mutable references are used when it makes everything easier.

The entire implementation is done in just over 300 lines of code!

Usage

cargo run -- path/to/filename.vm

If filename.vm is a valid program, a filename.asm file that can be executed by the Hack computer will be generated!

References

About

An implementation of the VM Translator from the 'Nand to Tetris' course, written in Rust!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages