zenacy-html-2.0.0: A standard compliant HTML parsing library

Safe HaskellNone
LanguageHaskell2010

Zenacy.HTML.Internal.Lexer

Description

The HTML Lexer.

Synopsis

Documentation

data Lexer s Source #

Defines the lexer state.

Constructors

Lexer 

Fields

data LexerOptions Source #

Lexer options type.

Constructors

LexerOptions 

Fields

Instances
Show LexerOptions Source # 
Instance details

Defined in Zenacy.HTML.Internal.Lexer

Default LexerOptions Source #

Default instance for lexer options.

Instance details

Defined in Zenacy.HTML.Internal.Lexer

Methods

def :: LexerOptions #

lexerNew :: LexerOptions -> ST s (Either BS (Lexer s)) Source #

Makes a new lexer.

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.

lexerNext :: Lexer s -> ST s Token Source #

Gets the next token from a lexer.