4 ms·
Actually, I feel that the parsec syntax in Haskell, for example, is much more readable - using many, noneOf etc. The chapter of the book "Real World Haskell" b
by sn41 4y ago
Actually, I feel that the parsec syntax in Haskell, for example, is much more readable - using many, noneOf etc.
The chapter of the book "Real World Haskell" builds a simple CSV parser:
https://book.realworldhaskell.org/read/using-parsec.html https://book.realworldhaskell.org/read/using-parsec.html
It may be adaptable for regex and for static analysis as well.
- Akronymus 4y agoParser combinators are one of those rare REALLY great things that almost entirely replace something else (regex). Sadly, way too verbose in many languages.