ghc-7.0.3: The GHC API

LexCore

# Documentation

isNameChar :: Char -> Bool Source

isKeywordChar :: Char -> Bool Source

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

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

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

isHexEscape :: String -> Bool Source

hexToChar :: Char -> Char -> Char Source

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

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

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