I'm looking for a parser for C. Here is what I need:

  1. Written in C (not C++).
  2. Handwritten (not generated).
  3. BSD or similarly permissive license.
  4. Capable of nontrivially parsing itself (can be a subset of C).

It can be part of a project as long as it's decoupled so that I can pull out the parser.

Is there an existing parser that fulfills these requirements?

Edit
Report