This repository includes:
- a detailed description of the Rust 1.80 lexer (in
writeup
) - a Rust reimplementation of the lexer based on that description (in
src
) - a manual list of testcases
- a harness for running
rustc
's lexer in-process (viarustc_private
) - strategies for comparing the implementation with
rustc
's usingproptest
See also the rendered description.
To see what's available from the CLI:
cargo run -- --help
Note the provided rust-toolchain.toml
will cause this to install the required nightly version of rustc
.
mdbook build
The output will appear in book/
This document is distributed under the terms of both the MIT license and the Apache license (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.