Safe Haskell | None |
---|---|
Language | Haskell2010 |
Sutori.Lexer.Lexer
Description
- lexerScanClean :: SutMonad SutToken
- runLexer :: Options -> String -> SutMonad a -> Either (SutError, SutLog) ((a, SutState), SutLogger)
- runLexer' :: String -> SutMonad a -> Either (SutError, SutLog) ((a, SutState), SutLogger)
- runLexerScan :: Options -> String -> Either (SutError, SutLog) (([SutToken], SutState), SutLogger)
- lexwrap :: (SutToken -> SutMonad a) -> SutMonad a
- lexerLoop :: SutMonad [SutToken]
Documentation
lexerScanClean :: SutMonad SutToken Source #
Scans for next token, but passes it though checks first
runLexer :: Options -> String -> SutMonad a -> Either (SutError, SutLog) ((a, SutState), SutLogger) Source #
Run the lexer on a given input string, with a given monadic action
runLexer' :: String -> SutMonad a -> Either (SutError, SutLog) ((a, SutState), SutLogger) Source #
Run the lexer with no options (default options)
runLexerScan :: Options -> String -> Either (SutError, SutLog) (([SutToken], SutState), SutLogger) Source #
Run the lexer on a given string, get the resulting tokens