CoALP-0.0.6: Coalgebraic logic programming library
CoALP.Parser.Lexer
Description
Alex the lexer
Synopsis
data Alex a
Instances
data Token
The token type:
Constructors
runAlex :: String -> Alex a -> Either String a
runAlex' :: String -> Alex a -> Either String (a, Integer)
Run alex monad and get user state counter
getVar :: Ident -> Alex Var
Get var counter from user state
scanTokens :: (Token -> Alex a) -> Alex a
Bind alex monad
clearVars :: Alex ()
Reset var counter
alexSynError :: Token -> Alex a
Syntactic error (unexpected token)