Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- parseText :: Parser a -> Text -> Either (SourceRange, String) a
- parseNamedText :: Parser a -> String -> Text -> Either (SourceRange, String) a
- parseFile :: FilePath -> IO (Either (SourceRange, String) Block)
- parseTokens :: Parser a -> [Lexeme Token] -> Either (SourceRange, String) a
- stat :: Parser Stat
- exp :: Parser Exp
- chunk :: Parser Block
Documentation
:: Parser a | |
-> Text | chunk |
-> Either (SourceRange, String) a |
Runs Lua lexer before parsing. Use parseText stat
to parse
statements, and parseText exp
to parse expressions.
Runs Lua lexer before parsing. Use parseNamedText stat "name"
to parse
statements, and parseText exp "name"
to parse expressions.
parseTokens :: Parser a -> [Lexeme Token] -> Either (SourceRange, String) a Source #
Parse a stream of tokens.