@hackage lua-bytecode0.1.0.0
Library for loading Lua bytecode.
Categories
License
BSD-3-Clause
Maintainer
shawjef3@gmail.com
Links
- Documentation
- No source repository
- Security
Versions
- 0.1.0.0 Wed, 19 Jun 2013
Installation
Dependencies (8)
- array
- base >=4 && <5
- bytestring >0.9
- cereal >=0.3
- containers
- hashable Show all…
Dependents (1)
@hackage/acme-everything
You can use this library to load LUA bytecode into its logical structure. Currently LUA 5.1 is supported.
import System.Environment import Lua.Bytecode5_1.Chunk import Lua.Bytecode5_1.Types import Lua.Bytecode5_1.Header import qualified Data.ByteString as BS import Text.Show.Pretty main = do args <- getArgs b <- BS.readFile $ args !! 0 let f = runLuaGet b :: Either String Function putStrLn $ ppShow f