nowfound

Life & fun · March 20, 2017

How to write a recursive descent parser

This is a chapter from a programming book that teaches readers how to build a recursive descent parser.

How to write a recursive descent parser launched on March 20, 2017 with 347 votes, #41 of 3,075 launches that month and more than 99% of that year's launches. The site was still online in December 2026, 9 years on.

In plain words

This is a chapter from a programming book that teaches readers how to build a recursive descent parser. It is designed for developers who currently use regex and string manipulation to process text but want to learn proper parsing techniques. The chapter covers building parsers with robust error handling, clear internal structure, and the ability to handle complex syntax rules.

written by AI from its launch page and website · 18 September 2026

Originality

76/100

Original. More original than 76% of products launched in 2017.

Similar products before it
None
in the archive on its launch day
Similar products since
None
launched after it

crowded fieldone of a kind

The score compares the words of this launch with every earlier launch in the archive: the fewer close matches on launch day, the higher the score. It says how new the idea was, not how good the product is. Similar products counted on November 30, 2026. See the similar products →This week’s most original launches →

Forecast

94%

chance that this product’s website is still online in November 2031. Typical launch of 2017 gets 80%.

1 year
99%
typical 96%
3 years
97%
typical 88%
5 years
94%
typical 80%
  • How to write a recursive descent parser
  • Typical launch of 2017

Launch signals stronger than 99% of the archiveweakest → strongest

Made on November 29, 2026, when the site was online, from what was public on launch day. It is not revised, and it is graded when the site is checked again. How the forecast works and how often it is right →

From the sources

This chapter marks the first major milestone of the book. Many of us have cobbled together a mishmash of regular expressions and substring operations to extract some sense out of a pile of text. The code was probably riddled with bugs and a beast to maintain. Writing a real parser — one with decent error handling, a coherent internal structure, and the ability to robustly chew through a sophisticated syntax — is considered a rare, impressive skill. In this chapter, you will attain it. “Parse” comes to English from the Old French “pars” for “part of speech”. It means to take a text and map each word to the grammar of the language. We use it here in the same sense, except that our language is…from craftinginterpreters.com

More life & fun this month

the category →

Is How to write a recursive descent parser yours? Feature it on the home page: $19, or free with the badge →

Source: Show HN post ↗

Launched alongside, March 2017

the whole month →