The Wayback Machine - https://web.archive.org/web/20201108183151/https://github.com/kelthuzadx/ylua
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

YLua VM

YLua VM is yet another a metacircular Lua VM, it was written in Lua, you still need compile lua source code by a bootstrap lua.

Getting started

You can simply launch it by a bootstrap lua and feed a binary bytecode file into it:

# Enjoy it! 
$ lua ylua.lua <bytecode_file>
# Trace bytecode execution flow with --debug option
$ lua ylua.lua <bytecode_file> --help
YLuaVM - A metacircular Lua VM written in Lua itself
Usage: lua ylua.lua <bytecode_file>
    --help|-h : show help message
    --debug|-d : trace bytecode execution flow
# Run unit test to make sure it works well
$ ./runtest

Please feel free to issue any bugs or pull request to add new features.

Reference

[0] Primary https://github.com/dibyendumajumdar/ravi/blob/master/readthedocs/lua_bytecode_reference.rst

[1] http://luaforge.net/docman/83/98/ANoFrillsIntroToLua51VMInstructions.pdf

[2] http://files.catwell.info/misc/mirror/lua-5.2-bytecode-vm-dirk-laurie/lua52vm.html

[3] https://www.lua.org/manual/5.3/manual.html

[4] https://blog.tst.sh/lua-5-2-5-3-bytecode-reference-incomplete/

About

[YLua] A metacircular Lua VM written in Lua.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.