5

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 1 week 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.

this post was submitted on 06 Jun 2026
5 points (100.0% liked)

Rust

8060 readers
5 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