flamethrower-0.0.2.0: A template engine for HTML

Safe HaskellSafe-Inferred

Flamethrower.Lexer

Documentation

data Context Source

Constructors

Context 

Fields

indentType :: Maybe Indent
 

data Indent Source

Constructors

Tab 
Spaces Int 

data Token Source

Constructors

Indent 
Newline 
Element String 
Class String 
Attribute String 
String [StringPart] 
Raw 
Doctype 
If String 
Else 

Instances

Eq Token 
Show Token 

data StringPart Source

Constructors

Character Char 
Interpolation String 

Instances

lexIndent :: Context -> String -> [Token]Source

lexContent :: Context -> String -> [Token]Source

readIdentifier :: String -> (String, String)Source

readLine :: String -> (String, String)Source

lexIf :: Context -> String -> [Token]Source

lexComment :: Context -> String -> [Token]Source

readString :: String -> ([StringPart], String)Source

readEscape :: String -> ([StringPart], String)Source

readInterpolation :: String -> ([StringPart], String)Source

lexString :: Context -> String -> [Token]Source

lexClass :: Context -> String -> [Token]Source

lex :: String -> [Token]Source