Red (the language) supports some very elegant DSLs. Here's Parse, a lovely way of defining grammars:
miniblog.
Related Posts
In many respects I feel an LLM benefits from a monorepo. I've vibe coded a bunch of helper CLIs recently and end up repeating the same preferences for all of them.
I want all my CLIs to use clippy, parse arguments with clap, etc. They're distinct tools in distinct repos though.
I've release difftastic 0.58:
* Updated C, C++, CMake, CSS, Elm, Go, Lua and Python parsers
* Better diffs when files have parse errors
* Polish: CRLF handling, obscure terminal detection, and a man page!
I've compiled the parser for my Garden programming language to wasm, so I can offer a web playground: https://www.garden-lang.org/
It's over 600KiB of wasm just for a function that returns a parse error message! I'm not sure if that's a lot (cf JS) or a little (cf typical binaries).