Safe Haskell | None |
---|---|
Language | Haskell2010 |
The HTML parser.
Synopsis
- data Parser s = Parser {
- parserLexer :: STRef s (Lexer s)
- parserDOM :: STRef s DOM
- parserElementStack :: STRef s [DOMID]
- parserActiveFormatList :: STRef s [ParserFormatItem]
- parserInsertionMode :: STRef s ParserMode
- parserOriginalMode :: STRef s ParserMode
- parserTemplateMode :: STRef s [ParserMode]
- parserContextElement :: STRef s (Maybe DOMID)
- parserHeadElement :: STRef s (Maybe DOMID)
- parserFormElement :: STRef s (Maybe DOMID)
- parserSelfClosingFlag :: STRef s Bool
- parserFragmentMode :: STRef s Bool
- parserFosterParenting :: STRef s Bool
- parserFrameSetOK :: STRef s Bool
- parserDone :: STRef s Bool
- parserTableChars :: STRef s [Token]
- parserAdoptionAgency :: STRef s (ParserAdoptionAgency s)
- parserErrors :: STRef s (DList BS)
- parserIFrameSrcDoc :: STRef s Bool
- parserTextMap :: STRef s (IntMap (STRef s (Buffer s)))
- parserLogErrors :: Bool
- data ParserOptions = ParserOptions {}
- data ParserResult = ParserResult {
- parserResultDOM :: DOM
- parserResultErrors :: [BS]
- parseDocument :: ParserOptions -> Either BS ParserResult
- parseFragment :: ParserOptions -> Either BS ParserResult
Documentation
Parser processing state.
Parser | |
|
data ParserOptions Source #
Parser options type.
ParserOptions | |
|
Instances
Eq ParserOptions Source # | |
Defined in Zenacy.HTML.Internal.Parser (==) :: ParserOptions -> ParserOptions -> Bool # (/=) :: ParserOptions -> ParserOptions -> Bool # | |
Ord ParserOptions Source # | |
Defined in Zenacy.HTML.Internal.Parser compare :: ParserOptions -> ParserOptions -> Ordering # (<) :: ParserOptions -> ParserOptions -> Bool # (<=) :: ParserOptions -> ParserOptions -> Bool # (>) :: ParserOptions -> ParserOptions -> Bool # (>=) :: ParserOptions -> ParserOptions -> Bool # max :: ParserOptions -> ParserOptions -> ParserOptions # min :: ParserOptions -> ParserOptions -> ParserOptions # | |
Show ParserOptions Source # | |
Defined in Zenacy.HTML.Internal.Parser showsPrec :: Int -> ParserOptions -> ShowS # show :: ParserOptions -> String # showList :: [ParserOptions] -> ShowS # | |
Default ParserOptions Source # | Default instance for parser options. |
Defined in Zenacy.HTML.Internal.Parser def :: ParserOptions # |
data ParserResult Source #
Parser result type.
Instances
Eq ParserResult Source # | |
Defined in Zenacy.HTML.Internal.Parser (==) :: ParserResult -> ParserResult -> Bool # (/=) :: ParserResult -> ParserResult -> Bool # | |
Ord ParserResult Source # | |
Defined in Zenacy.HTML.Internal.Parser compare :: ParserResult -> ParserResult -> Ordering # (<) :: ParserResult -> ParserResult -> Bool # (<=) :: ParserResult -> ParserResult -> Bool # (>) :: ParserResult -> ParserResult -> Bool # (>=) :: ParserResult -> ParserResult -> Bool # max :: ParserResult -> ParserResult -> ParserResult # min :: ParserResult -> ParserResult -> ParserResult # | |
Show ParserResult Source # | |
Defined in Zenacy.HTML.Internal.Parser showsPrec :: Int -> ParserResult -> ShowS # show :: ParserResult -> String # showList :: [ParserResult] -> ShowS # | |
Default ParserResult Source # | Default instance for parser results. |
Defined in Zenacy.HTML.Internal.Parser def :: ParserResult # |
parseDocument :: ParserOptions -> Either BS ParserResult Source #
Parses an HTML document.
parseFragment :: ParserOptions -> Either BS ParserResult Source #
Parses an HTML fragment.