Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- alex_tab_size :: Int
- alex_base :: AlexAddr
- alex_table :: AlexAddr
- alex_check :: AlexAddr
- alex_deflt :: AlexAddr
- alex_accept :: Array Int (AlexAcc user)
- alex_actions :: Array Int (Posn -> String -> Token)
- alex_action_3 :: Posn -> String -> Token
- alex_action_4 :: Posn -> String -> Token
- alex_action_5 :: Posn -> String -> Token
- alex_action_6 :: Posn -> String -> Token
- alex_action_7 :: Posn -> String -> Token
- data AlexAddr = AlexA# Addr#
- alexIndexInt16OffAddr :: AlexAddr -> Int# -> Int#
- alexIndexInt32OffAddr :: AlexAddr -> Int# -> Int#
- quickIndex :: Array Int (AlexAcc (Any :: Type)) -> Int -> AlexAcc (Any :: Type)
- data AlexReturn a
- alexScan :: (Posn, Char, [Byte], String) -> Int -> AlexReturn (Posn -> String -> Token)
- alexScanUser :: t -> (Posn, Char, [Byte], String) -> Int -> AlexReturn (Posn -> String -> Token)
- alex_scan_tkn :: t1 -> t2 -> Int# -> AlexInput -> Int# -> AlexLastAcc -> (AlexLastAcc, AlexInput)
- data AlexLastAcc
- = AlexNone
- | AlexLastAcc !Int !AlexInput !Int
- | AlexLastSkip !AlexInput !Int
- data AlexAcc user
- tok :: (String -> Tok) -> Posn -> String -> Token
- data Tok
- pattern TS :: String -> Int -> Tok
- data TokSymbol = TokSymbol {}
- data Token
- printPosn :: Posn -> String
- tokenPos :: [Token] -> String
- tokenPosn :: Token -> Posn
- tokenLineCol :: Token -> (Int, Int)
- posLineCol :: Posn -> (Int, Int)
- mkPosToken :: Token -> ((Int, Int), String)
- tokenText :: Token -> String
- prToken :: Token -> String
- data BTree
- eitherResIdent :: (String -> Tok) -> String -> Tok
- resWords :: BTree
- unescapeInitTail :: String -> String
- data Posn = Pn !Int !Int !Int
- alexStartPos :: Posn
- alexMove :: Posn -> Char -> Posn
- type Byte = Word8
- type AlexInput = (Posn, Char, [Byte], String)
- tokens :: String -> [Token]
- alexGetByte :: AlexInput -> Maybe (Byte, AlexInput)
- alexInputPrevChar :: AlexInput -> Char
- utf8Encode :: Char -> [Word8]
Documentation
alex_tab_size :: Int Source #
data AlexReturn a Source #
alexScanUser :: t -> (Posn, Char, [Byte], String) -> Int -> AlexReturn (Posn -> String -> Token) Source #
alex_scan_tkn :: t1 -> t2 -> Int# -> AlexInput -> Int# -> AlexLastAcc -> (AlexLastAcc, AlexInput) Source #
data AlexLastAcc Source #
Token without position.
TK !TokSymbol | Reserved word or symbol. |
TL !String | String literal. |
TI !String | Integer literal. |
TV !String | Identifier. |
TD !String | Float literal. |
TC !String | Character literal. |
T_VarIdentToken !String | |
T_HoleIdentToken !String |
pattern TS :: String -> Int -> Tok Source #
Smart constructor for Tok
for the sake of backwards compatibility.
Keyword or symbol tokens have a unique ID.
Finite map from text to token organized as binary search tree.
eitherResIdent :: (String -> Tok) -> String -> Tok Source #
Convert potential keyword into token or use fallback conversion.
unescapeInitTail :: String -> String Source #
Unquote string literal.
alexStartPos :: Posn Source #
alexInputPrevChar :: AlexInput -> Char Source #
utf8Encode :: Char -> [Word8] Source #
Encode a Haskell String to a list of Word8 values, in UTF8 format.