Skip to content

esrrhs/fakelua

Repository files navigation

FakeLua(Work in process)

codecov

FakeLua is a superset of Lua, it compiles Lua to native code at runtime.

Feature

  • compile with C++23
  • build on Linux && Mingw
  • support Lua 5.4 grammar
  • lexing and parsing by Flex && Bison
  • compile to native code by GCC JIT
  • support GDB Lua source code

Difference with Lua

  • no global variable, only global constant
  • no GC, use memory pool
  • no coroutine/thread/userdata/metatable
  • table are always hash table, no array table
  • string concat support all type
  • no closure, it's slow and complex to implement

Directory structure

Build

Linux

  • Dependent: install gcc-13 with jit, cmake, flex, bison. install Lua for test.
  • Build:
mkdir build
cd build
cmake ..
make

Mingw

About

FakeLua is a superset of Lua JIT

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published