yi-language-0.1.0.8: Collection of language-related Yi libraries.

Safe HaskellNone

Yi.Lexer.Latex

Synopsis

Documentation

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

Comment 
Text 
Special !Char 
Command !String 
Begin !String 
End !String 
NewCommand 

Instances

Eq Token 
Ord Token 
Show Token 

type HlState = IntSource

tokenToText :: Token -> Maybe [Char]Source