Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hpp.Preprocessing
Description
The simplest pre-processing steps are represented as distinct passes over input lines.
Synopsis
- trigraphReplacement :: Stringy s => s -> s
- lineSplicing :: Stringy s => [s] -> [s]
- cCommentRemoval :: Stringy s => [s] -> [s]
- cCommentAndTrigraph :: Stringy s => [s] -> [s]
- prepareInput :: (Monad m, HasHppState m) => m ([String] -> [[TOKEN]])
Documentation
trigraphReplacement :: Stringy s => s -> s Source #
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 #