LexCore

ghc-7.8.3: The GHC API

Safe Haskell | None
Language | Haskell98

LexCore

# Documentation

isNameChar :: Char -> Bool Source

isKeywordChar :: Char -> Bool Source

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

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

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

isHexEscape :: String -> Bool Source

hexToChar :: Char -> Char -> Char Source

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

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

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