hpp-0.1.0.0: A Haskell pre-processor

Safe HaskellSafe
LanguageHaskell2010

Hpp.Expansion

Description

Line expansion is the core input token processing logic. Object-like macros are substituted, and function-like macro applications are expanded.

Synopsis

Documentation

expandLine :: Config -> Int -> Env -> [Token] -> Either Error (Env, [Token]) Source

Expand a single line of tokenized code.