orangeduck/mpc
View on GitHub ↗ ★ 2,852 C
A Parser Combinator library for C
12 mentions on Hacker News by 11 people: 4 stories, 8 comments · first 2014-02-12 · latest 2026-07-01
20082026
-
…been wanting a good parser combinator library for C since 2023 when I contributed to mpc[1]: [1]: https://github.com/orangeduck/mpc/commits?author=steve-chave...
comment by steve-chavez · 2026-07-01 · in Single header Parser Combinators for C -
…their own prebuilt parser library 'mpc'. (I was unable to find a link to the source in the book, so https://github.com/orangeduck/mpc ) I was unable to find any instance of 'car' or 'cdr' or 'caddar' and their like, which I feel is the…
comment by lskfiep · 2025-08-05 · in Build Your Own Lisp -
▲ 4
C Parser Librarystory by sargstuff · 2022-04-10 · 0 comments
-
▲ 3
A Parser Combinator library for Cstory by pplonski86 · 2019-01-06 · 0 comments
-
…For example, in the chapter on parsing, the grammar is implemented using a library called MPC ( https://github.com/orangeduck/mpc ) written by the author himself. I didn't quite reach till the very end so didn't have a chance to implement…
comment by krat0sprakhar · 2017-03-27 · in Make your own Lisp -
…to Daniel's stuff (mostly mpc¹) and his code is (IMO) quite high quality. ##c is a bit deluded. ¹ https://github.com/orangeduck/mpc
comment by PeCaN · 2016-09-11 · in “Learn C the Hard Way” is no longer available for free -
For parsing, there's the excellent mpc , a parser combinator library in highly portable C. https://github.com/orangeduck/mpc I even managed to use it drop in for a RiscOS project once.
comment by jarcane · 2016-01-23 · in Single-file public-domain/open source C libraries with minimal dependencies -
…mpc is very flexible and since it's just a C library I find it a lot easier to iterate with. 1: https://github.com/orangeduck/mpc
comment by PeCaN · 2015-12-15 · in Plan to throw one away -
▲ 58
A Parser Combinator library for Cstory by _zhqs · 2015-10-31 · 25 comments
-
For that I think you can do something similar to what mpc for C ( https://github.com/orangeduck/mpc ) and LPeg for Lua ( http://www.inf.puc-rio.br/~roberto/lpeg/ ), which is to provide the parsing machinery and write a small DSL with the…
comment by jpdarago · 2015-01-29 · in Parsing command line arguments using a finite state machine and backtracking -
Actually the project depends on the library which claims to implement the named rule: https://github.com/orangeduck/mpc
comment by acqq · 2014-04-05 · in Learn C and build your own Lisp -
▲ 2
Mpc – Parser Combinators for Cstory by orangeduck · 2014-02-12 · 0 comments