Ditch regex for parser combinators, a Rust / nom step-by-step guide

This page summarizes the projects mentioned and recommended in the original post on /r/programming

Our great sponsors
  • masala-parser

    Javascript Generalized Parser Combinators

    - https://pypi.org/project/parsita/#description - https://github.com/masala/masala-parser

  • lexy

    C++ parsing DSL

    It's not a parser generator, it's also a parser combinator, but I've recently written one for C++: https://github.com/foonathan/lexy

  • JetBrains Dev Survey

    What’s up with the C++ ecosystem in 2023? JetBrains Developer Ecosystem Survey 2023 has given us many interesting insights. The Embedded (37%) and Games (39%) industries are already working with C++20, developers are incorporating static analysis in their CI, and ChatGPT usage among coders is flourishing. Read on for more!

  • lalrpop

    LR(1) parser generator for Rust

    Do you mean for C++ in particular, or just for any language? Because LALRPOP is very good if you're not specifically looking for C++.

  • attoparsec

    A fast Haskell library for parsing ByteStrings

    - https://hackage.haskell.org/package/attoparsec - https://hackage.haskell.org/package/megaparsec

  • PEGTL

    Parsing Expression Grammar Template Library

    I've found https://github.com/taocpp/PEGTL to be easier to use than boost parser generators.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts