rustc-php

rustc-php

A Rust compiler with ownership checking, in PHP

Description

Understanding how Rust ownership and borrow checking work is hard in the huge official compiler. rustc-php is a Rust compiler with ownership checking, written in PHP.

It parses a Rust subset, checks ownership and borrowing and generates code, a fun look at compiler internals.

Features



Ownership:Borrow rules.

Pipeline:Parse to codegen.

PHP:Readable.
Tags:rustphp