-
Notifications
You must be signed in to change notification settings - Fork 205
document_en
YANG Huan edited this page Jun 4, 2018
·
7 revisions
CSharp.lua is an industrial-quality compiler that converts C # code into lua code, generates an equivalent and readable lua code, and makes a reasonably efficient transition to lua syntax, supporting all the syntax features of C # 7.0 and implementing the Coresystem.lua library to support the most core and basic interfaces in the. NET class Library.
https://yanghuan.github.io/external/bridgelua-editor/index.html
- Compile the source code directory using command line arguments. If successful, a compiled lua files is generated in the output directory, and there is also a Manifest.lua manifest file.
- 使用并加载CoreSystem.lua库,require “All.lua“ 文件即可。
- 通过manifest.lua文件加载所有生成的lua文件。manifest.lua 处理了各个模块之间的依赖关系,保证按此顺序可以正确加载所有的代码。
- fibonacci 可参考此实例的配置,其完成C# code --> Lua code --> load lua and run 的完整流程。