hpp-0.6.1: A Haskell pre-processor
Hpp.Directive
Description
Implement the logic of CPP directives (commands prefixed with an octothorpe).
directive :: forall m. (Monad m, HasError m, HasHppState m, HasEnv m) => HppT [String] (Parser m [TOKEN]) Bool Source #
Handle preprocessor directives (commands prefixed with an octothorpe).
macroExpansion :: (Monad m, HasHppState m, HasError m, HasEnv m) => HppT [String] (Parser m [TOKEN]) (Maybe [TOKEN]) Source #
Expands an input line producing a stream of output lines.