ghc-7.8.2: The GHC API

Safe Haskell | None
Language | Haskell98

LexCore

# Documentation

isNameChar :: Char -> Bool

isKeywordChar :: Char -> Bool

lexer :: (Token -> P a) -> P a

lexChar :: (Token -> String -> Int -> ParseResult a) -> String -> Int -> ParseResult a

lexString :: String -> (Token -> [Char] -> Int -> ParseResult a) -> String -> Int -> ParseResult a

isHexEscape :: String -> Bool

hexToChar :: Char -> Char -> Char

lexNum :: (Token -> String -> a) -> String -> a

lexName :: (a -> String -> b) -> (String -> a) -> String -> b

lexKeyword :: (Token -> [Char] -> Int -> ParseResult a) -> String -> Int -> ParseResult a