lua-bytecode: Library for loading Lua bytecode.

[ bsd3, library, lua ] [ Propose Tags ] [ Report a vulnerability ]

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Dependencies array, base (>=4 && <5), bytestring (>0.9), cereal (>=0.3), containers, hashable, numeric-extras, vector (>=0.10) [details]
Tested with ghc ==7.6.3
License BSD-3-Clause
Copyright Copyright (c) Jeff Shaw 2013
Author Jeff Shaw
Maintainer shawjef3@gmail.com
Category LUA
Uploaded by JeffShaw at 2013-06-19T15:42:48Z
Distributions NixOS:0.1.0.0
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1158 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]