yi-language-0.2.0: Collection of language-related Yi libraries.
Yi.Lexer.Latex
Synopsis
initState :: HlState Source
alexScanToken :: (AlexState HlState, AlexInput) -> Maybe (Tok Token, (AlexState HlState, AlexInput)) Source
Scan one token. Return (maybe) a token and a new state.
data Token Source
Constructors
Instances
type HlState = Int Source
tokenToText :: Token -> Maybe [Char] Source