4 ms·
I implemented a basic set of primitive parsers and combinators here in K, along with a usage example- a complete parser for the bittorrent "Bencode" data interc
by RodgerTheGreat 9y ago
I implemented a basic set of primitive parsers and combinators here in K, along with a usage example- a complete parser for the bittorrent "Bencode" data interchange format:
https://github.com/JohnEarnest/ok/blob/gh-pages/examples/parsing.k https://github.com/JohnEarnest/ok/blob/gh-pages/examples/par...
Not particularly efficient, but fairly concise.