cpphs

A liberalised re-implementation of cpp, the C pre-processor. http://projects.haskell.org/cpphs/

Latest on Hackage:1.20.9.1

See all snapshots cpphs appears in

LicenseRef-LGPL licensed and maintained by Malcolm Wallace

Module documentation for 1.18.6

This version can be pinned in stack with:[email protected]:4ae34ae875a14ddc717ecfc9afb2695b2c5052a7ac470fb562d0ba5eed7dc310,2350
  • Language
    • Language.Preprocessor
      • Language.Preprocessor.Cpphs
      • Language.Preprocessor.Unlit

Cpphs is a re-implementation of the C pre-processor that is both more compatible with Haskell, and itself written in Haskell so that it can be distributed with compilers.

This version of the C pre-processor is pretty-much feature-complete and compatible with traditional (K&R) pre-processors. Additional features include: a plain-text mode; an option to unlit literate code files; and an option to turn off macro-expansion.