home.social

#combinators β€” Public Fediverse posts

Live and recent posts from across the Fediverse tagged #combinators, aggregated by home.social.

  1. Oh joy, yet another #C++17 #parser combinator library! πŸŽ‰ Because what the world really needed was more creative ways to torture ourselves with syntactic nightmares and verbose error messages. πŸš€ GitHub's endless quest to make #programming as enjoyable as a root canal continues unabated. πŸ™„
    github.com/foonathan/lexy #combinators #humor #GitHub #developer #woes #HackerNews #ngated

  2. Context free grammars (CFG) are better than parsing expression grammars (PEG), because CFGs represent how we think.

    Parser combinators are similar to PEGs, so they are worse than CFGs, too.

    So, don't use Rust libraries nom, combine. Use lalrpop.

    Don't use Haskell libraries parsec, gigaparsec, attoparsec, megaparsec, trifecta. Use Earley, happy.

    See more detailed story in my new article safinaskar.writeas.com/this-is .

    The story also includes some cases, where PEG and parser combinators may still be useful. Also, the article gives links to my Haskell parsing libraries.

    #haskell #rust #parsing #parse #cfg #peg #combinators #parsercombinators #parsingcombinators #nom #combine #lalrpop #parsec #earley #happy