Get the latest tech news
Parcom: CL Parser Combinators
Simple parser combinators for Common Lisp. Contribute to fosskers/parcom development by creating an account on GitHub.
parcom operates strictly on strings, not streamed byte data, but is otherwise “zero copy” in that extracted substrings of the original input are not reallocated. CompilerStatusSBCL✅ECL✅Clasp❓ABCL✅CCL✅Clisp✅Allegro✅LispWorks❓The examples below use(in-package :parcom) for brevity, but it’s assumed that you’ll use a local nickname like pc in your actual code. This library does not offer a currying mechanism, so the technique usually available in Haskell of fmap’ing a function over chain of<*> must be done instead with apply:
Or read this on Hacker News