Module advtrains_doc_integration.bc
Bytecode parsing.
Please note that this module is experimental and subject to change.
Functions
parse (dump) | Try to parse a bytecode dump. |
tostring (dump) | Try to format a bytecode dump. |
Functions
- parse (dump)
-
Try to parse a bytecode dump.
Parameters:
- dump string or function The bytecode input or the function to read.
Returns:
-
"luajit" If
dump
is valid LuaJIT bytecode. - ... Data parsed from the bytecode.
Or
- nil If the dump cannot be parsed.
- string A message indicating the error.
- tostring (dump)
-
Try to format a bytecode dump.
Parameters:
- dump string or function The bytecode input of the function to read.
Returns:
-
"luajit" If
dump
is valid LuaJIT bytecode. -
string
A string describing the bytecode dump. The format is similar to that of
luajit -bl
Or
- nil If the dump cannot be parsed.
- string A message indicating the error.