3 ms·
For my own toy compilers/interpreters, I basically always hand-roll my parsers. The only exception to that is when the purpose of building the compiler in the f
by rufius 9y ago
For my own toy compilers/interpreters, I basically always hand-roll my parsers. The only exception to that is when the purpose of building the compiler in the first place is to use a library like Parsec or FParsec.
That said - many languages I dabble in are variants on Forths or Lisps where parsing is easy comparatively.