Safe Haskell | None |
---|---|
Language | Haskell2010 |
- initState :: HlState
- alexScanToken :: (AlexState HlState, AlexInput) -> Maybe (Tok Token, (AlexState HlState, AlexInput))
- tokenToStyle :: Token -> StyleName
- tokenToText :: Token -> Maybe String
- type TT = Tok Token
- isErrorTok :: Token -> Bool
- isSpecial :: String -> Token -> Bool
- startsLayout :: Token -> Bool
- isComment :: Token -> Bool
- data Token
- type HlState = Int
- data CommentType
- data ReservedType
- data OpType
Documentation
alexScanToken :: (AlexState HlState, AlexInput) -> Maybe (Tok Token, (AlexState HlState, AlexInput)) Source
Scan one token. Return (maybe) a token and a new state.
tokenToStyle :: Token -> StyleName Source
tokenToText :: Token -> Maybe String Source
isErrorTok :: Token -> Bool Source
startsLayout :: Token -> Bool Source