An Interactive BNF Grammar Playground in Rust (Leptos & Trunk)
2025-08-13Rust offers very good BNF parsers, but they are generally designed for the backend. With WebAssembly compilation, this is no longer really a problem. In this article, we build the foundations of an interactive sandbox with Leptos and Trunk to debug BNF entirely in the browser.