this post was submitted on 06 Jun 2026
5 points (100.0% liked)
Rust
8085 readers
4 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Clap has an entry in their cookbook for a REPL:
Of course, this works best for simple stuff, where you just have individual commands to parse.
For a Python-style REPL with a full-fledged language attached, I would not use that approach.
There's probably some REPL languages implemented in Rust already out there, where you can look at their approach.