Yi.Lexer.Latex
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
Defined in Yi.Lexer.Latex
Methods
showsPrec :: Int -> Token -> ShowS #
show :: Token -> String #
showList :: [Token] -> ShowS #
(==) :: Token -> Token -> Bool #
(/=) :: Token -> Token -> Bool #
compare :: Token -> Token -> Ordering #
(<) :: Token -> Token -> Bool #
(<=) :: Token -> Token -> Bool #
(>) :: Token -> Token -> Bool #
(>=) :: Token -> Token -> Bool #
max :: Token -> Token -> Token #
min :: Token -> Token -> Token #
type HlState = Int Source #
tokenToText :: Token -> Maybe String Source #