3 ms·
I had the idea a while back to do a parser-generator in the form of Rust macros, which would mean a) you don't have to source-control a giant pile of generated
by brundolf 5y ago
I had the idea a while back to do a parser-generator in the form of Rust macros, which would mean a) you don't have to source-control a giant pile of generated files, and b) you get real-time editor integration without a separate "generate" step. I got out of my depth trying to get the actual macros to process the BNF (it gets very meta because Rust's declarative macros are themselves written in a very BNF-like syntax), but I still think this would be possible and pretty cool