Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hpp.Conditional
Description
Parsing functionality for pre-processor conditionals.
Synopsis
- dropBranch :: (HasError m, HasHppState m, Monad m) => Parser m [TOKEN] ()
- takeBranch :: LineNum -> [[TOKEN]] -> [[TOKEN]]
Documentation
dropBranch :: (HasError m, HasHppState m, Monad m) => Parser m [TOKEN] () Source #
Drop the rest of a conditional expression incrementing the given
LineNum
by the number of lines skipped.