LuaDardo
LuaDardo copied to clipboard
A Lua virtual machine written in Dart
It would be useful for future contributions to this project for existing (and future) tests to be run as CI workflow in a GithubAction.
The functions that use Lua Patterns in regular lua seem to be using RegEx in LuaDardo which makes it really confusing for Lua devs who have been working with Lua...
我也想加入开发,但不知道如何开始,我需要有哪些前置基础,比如:阅读lua虚拟机源码。 I also want to get involved in development, but I don't know how to start, what I need to have the foundation, such as reading the lua virtual machine...
Running > var ls = LuaState.newState(); > ls.openLibs(); > ls.doString(""" > function test() > do > print("Hello") > return nil > end > print("World") > end > > test() >...
Currently, trying to measure the length of a string with #'abc' successfully adds the length to the stack, but doesn't break out of the function control flow, leaving the function...
```dart /// lua_dardo-0.0.5\lib\src\state\lua_state_impl.dart void _setMetatable(Object? val, LuaTable? mt) { if (val is LuaTable) { val.metatable = mt; return; } String key = "_MT${LuaValue.typeOf(val)}"; registry!.put(key, mt); } /// lua_dardo-0.0.5\lib\src\state\lua_value.dart static LuaType...