Safe Haskell | None |
---|---|
Language | Haskell2010 |
The HTML Lexer.
Synopsis
- data Lexer s = Lexer {
- lexerData :: BS
- lexerIgnore :: Bool
- lexerLog :: Bool
- lexerOffset :: STRef s Int
- lexerToken :: STRef s (TokenBuffer s)
- lexerBuffer :: STRef s (Buffer s)
- lexerLast :: STRef s [Word8]
- lexerState :: STRef s LexerState
- lexerReturn :: STRef s LexerState
- lexerSkip :: STRef s LexerSkip
- lexerErrors :: STRef s (DList BS)
- lexerCode :: STRef s Int
- data LexerOptions = LexerOptions {}
- data LexerSkip
- lexerNew :: LexerOptions -> ST s (Either BS (Lexer s))
- lexerSetRCDATA :: Lexer s -> ST s ()
- lexerSetRAWTEXT :: Lexer s -> ST s ()
- lexerSetPLAINTEXT :: Lexer s -> ST s ()
- lexerSetScriptData :: Lexer s -> ST s ()
- lexerSkipNextLF :: Lexer s -> ST s ()
- lexerNext :: Lexer s -> ST s Token
Documentation
Defines the lexer state.
Lexer | |
|
data LexerOptions Source #
Lexer options type.
LexerOptions | |
|
Instances
Show LexerOptions Source # | |
Defined in Zenacy.HTML.Internal.Lexer showsPrec :: Int -> LexerOptions -> ShowS # show :: LexerOptions -> String # showList :: [LexerOptions] -> ShowS # | |
Default LexerOptions Source # | Default instance for lexer options. |
Defined in Zenacy.HTML.Internal.Lexer def :: LexerOptions # |
Defines the skip mode.
lexerSetRCDATA :: Lexer s -> ST s () Source #
Sets the RCDATA mode.
lexerSetRAWTEXT :: Lexer s -> ST s () Source #
Sets the raw text mode.
lexerSetPLAINTEXT :: Lexer s -> ST s () Source #
Sets the plain text mode.
lexerSetScriptData :: Lexer s -> ST s () Source #
Sets the script data mode.
lexerSkipNextLF :: Lexer s -> ST s () Source #
Sets the skip next linefeed flag.