Clean room implementation of the classic ed text editor, written in Rust