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

!performance@programming.dev

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
 

Is there any guide, tutorial or other resource that helps in making a REPL-based DSL using rust

you are viewing a single comment's thread
view the rest of the comments
[–] Ephera@lemmy.ml 1 points 2 weeks ago

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.