SuperC is a parsing framework that preserves preprocessor conditionals during C preprocessing and parsing. SuperC is bundled with the xtc framework, from which it uses the AST and Type libraries. The original project homepage for both can be found at http://www.cs.nyu.edu/xtc/, where past versions and links to publications can be found.
Use the script scripts/superc_linux.sh. See scripts/data.sh for example usage. (Linux versions past 2013 have not been tested.)
Run make manual in src/superc/manual. Requires pdflatex. SuperP4 is similar to SuperC, so the manual applies to SuperP4 as well.