Safe Haskell | None |
---|
Documentation
parseText :: Parsec [LTok] () a -> String -> Either ParseError aSource
Runs Lua lexer before parsing. Use parseText stat
to parse
statements, and parseText exp
to parse expressions.
parseFile :: FilePath -> IO (Either ParseError (Block SourcePos))Source
Parse a Lua file. You can use parseText chunk
to parse a file from a string.