hpp-0.6.4: A Haskell pre-processor
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hpp.Preprocessing

Description

The simplest pre-processing steps are represented as distinct passes over input lines.

Synopsis

Documentation

lineSplicing :: Stringy s => [s] -> [s] Source #

If a line ends with a backslash, it is prepended to the following the line.

cCommentRemoval :: Stringy s => [s] -> [s] Source #

Remove C-style comments bracketed by @@.

cCommentAndTrigraph :: Stringy s => [s] -> [s] Source #

Remove C-style comments bracked by @@ and perform trigraph replacement.

prepareInput :: (Monad m, HasHppState m) => m ([String] -> [[TOKEN]]) Source #