Tim is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

Deriving parsers from declarative grammars is neat, but tools tend to be so inexpressive you end up writing hideous grammars to compensate

Parsing expression grammars are wonderful… but now you end up re-testing for every keyword before an identifier github.com/harc/ohm/blob/maste

In general, context-free grammars seem to be a hammer that we're awkwardly applying everywhere because we don't have a more appropriate tool

Tim @tjvr

@marijn Hi, I've done a lot of work on parsers, particularly based on CFGs, so I'm very interested in this. I know you've said before CFGs don't scale (regarding ES!). Do you have any ideas on what would make CFGs better?

· Web · 0 · 0