Mini rust in Rust 001: Lexing and int
October 31, 2024 [Programming, Programming Languages, Rust, Tech, Videos] #mini-rust
Introducing my new series: writing a little Rust-like language in Rust. It will be an interpreted language, and (at least for now) it will try to work as much as real Rust. Maybe someday it will be a useful language, but for now it’s just for fun. (You could imagine it as a nifty scripting language, or one embedded within a Rust project, but for that it would probably be necessary to deviate from Rust – perhaps avoiding ownership and references and using a Python-like runtime model.)
In this video we write enough code to understand that integers are made up of several contiguous digits, and we wrap them in a “token”. This is the beginning of a Lexer.
You can find the source code at codeberg.org/andybalaam/milk and more of my stuff at artificialworlds.net
Gaming Hub
A gaming hub can refer to a central platform or space dedicated to gaming, where players can access games, interact with other gamers, and enjoy related content.