1
1
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:
Babz 2023-06-21 00:17:27 +02:00
parent 715f850d50
commit bdf158be9e
2 changed files with 11 additions and 0 deletions

View File

@ -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
View 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