4 ms·
Parsing is hard and this definitely beats having to write ad-hoc parsers for stuff. I worry we're essentially reinventing a less verbose form of SQL though.
by matheusmoreira 3y ago
Parsing is hard and this definitely beats having to write ad-hoc parsers for stuff. I worry we're essentially reinventing a less verbose form of SQL though.
- kunley 3y agoNo, parsing is easy... I recommend the "Crafting Interpreters" book.
- matheusmoreira 3y agoI love that book. Parsing Techniques is even more detailed. It's still pretty hard. Easy would be a parse(grammar, input) function in the standard library. Earley algorithm is perfect for that. I wonder why no one's thought of it.
- chriswarbo 3y ago> I worry we're essentially reinventing a less verbose form of SQL though. We already have that with paste, join, etc. from Coreutils https://learnbyexample.github.io/cli_text_processing_coreutils/join.html https://learnbyexample.github.io/cli_text_processing_coreuti...