Everything About ___
Live briefing

Everything about Parser combinator

Higher-order function that combines several parsers

In computer programming, a parser combinator is a higher-order function that accepts several parsers as input and returns a new parser as its output. In this context, a parser is a function accepting strings as input and returning some structure as output, typically a parse tree or a set of indices representing locations in the string where parsing stopped successfully. Parser combinators enable a recursive descent parsing strategy that facilitates modular piecewise construction and testing. This parsing technique is called combinatory parsing. Wikipedia →

đź§­ Start here: a 6-step reading path

  1. Read the overview: Parser combinatorA 5-minute orientation
  2. Skim a recent paper: Modeling and implementation of context free grammar combinatorial parserInfluential work since 2022
  3. Pick up a classic book: Programming in HaskellThe most-reprinted book on the subject
  4. Read the landmark paper: Combinator Parsers: From Toys to ToolsCited 15 times
  5. Go sideways: Top-down parsingA closely related topic
  6. Go sideways: Left recursionA closely related topic

đź“– Definitions

No dictionary entry for this exact phrase.

🗂️ The subject at a glance

  1. Basic idea
  2. The combinators
  3. Examples
  4. Shortcomings and solutions

🏆 Landmark papers (most cited)

🆕 Influential since 2022

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

đź”— Related topics