miniblog.
← Back to all posts
Apr 28, 2018 at 15:18
Superb article on the history of parsers, what approaches are used in industry (mostly hand-written recursive descent!) and the expressiveness of parser combinators and PEG.
Parsing: a timeline -- V3.1
jeffreykegler.github.io/personal/timeline_v3
Wilfred Hughes
Related Posts
Feb 9, 2015 at 23:03
The vast majority of C compilers have a hand-written recursive descent parser. It's rare to see yacc in the wild.
Wilfred Hughes
Shared words: parsers, recursive, descent, hand, written Score: 237.6
Dec 20, 2015 at 11:27
Moving to a hand-written parser made GCC faster, more flexible and provides better diagnostics:
Making sure you're not a bot!
gcc.gnu.org/wiki/New_C_Parser
Wilfred Hughes
Shared words: parsers, hand, written Score: 58.1
Jun 27, 2020 at 05:40
Compelling demonstration of parser combinators for date parsing:
https://medium.com/mercury-bank/a-magic-date-input-using-parser-combinators-in-typescript-3c779741bf4c
You build up a series of functions for parsing elements, which composes much more nicely than regexps.
Just a moment...
medium.com/mercury-bank/a-magic-date-input-using-parser-combinators-in-typescript-3c779741bf4c
Wilfred Hughes
Shared words: parsers, combinators Score: 46.4