Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
layoutHandler :: forall t lexState. (Show t, Eq t) => (t -> Bool) -> [(t, t)] -> (Tok t -> Bool) -> (t, t, t) -> (Tok t -> Bool) -> Scanner (AlexState lexState) (Tok t) -> Scanner (State t lexState) (Tok t) Source
Transform a scanner into a scanner that also adds opening, closing and "next" tokens to indicate layout.