mirror of
https://github.com/wader/fq.git
synced 2024-09-11 20:07:11 +03:00
luajit: add luajit.md
This commit is contained in:
parent
715f850d50
commit
bdf158be9e
@ -22,6 +22,7 @@ package luajit
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"embed"
|
||||
"encoding/binary"
|
||||
|
||||
"github.com/wader/fq/format"
|
||||
@ -30,6 +31,9 @@ import (
|
||||
"github.com/wader/fq/pkg/scalar"
|
||||
)
|
||||
|
||||
//go:embed luajit.md
|
||||
var LuaJITFS embed.FS
|
||||
|
||||
func init() {
|
||||
interp.RegisterFormat(
|
||||
format.LuaJIT,
|
||||
@ -37,6 +41,7 @@ func init() {
|
||||
Description: "LuaJIT 2.0 bytecode dump",
|
||||
DecodeFn: LuaJITDecode,
|
||||
})
|
||||
interp.RegisterFS(LuaJITFS)
|
||||
}
|
||||
|
||||
// reinterpret an int as a float
|
||||
|
6
format/luajit/luajit.md
Normal file
6
format/luajit/luajit.md
Normal file
@ -0,0 +1,6 @@
|
||||
### Authors
|
||||
- [@dlatchx](https://github.com/dlatchx)
|
||||
|
||||
### References
|
||||
- https://github.com/LuaJIT/LuaJIT/blob/v2.1/src/lj_bcdump.h
|
||||
- http://scm.zoomquiet.top/data/20131216145900/index.html
|
Loading…
Reference in New Issue
Block a user