ghc-7.6.3: The GHC API

Safe Haskell | None

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