Skip to content

document_en

YANG Huan edited this page Oct 31, 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.

Online Try

https://yanghuan.github.io/external/bridgelua-editor/index.html

How To Use

  1. 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.
  2. Use and load Coresystem.lua library, require "All.lua" file.
  3. Loads all generated lua files through the Manifest.lua file. Manifest.lua processes dependencies between modules to ensure that all code is loaded correctly in this order.

Sample

  • fibonacci refer to the configuration of this instance, which completes the complete process of C # code--> lua Code--> load lua and run.

FAQ

https://github.com/yanghuan/CSharp.lua/wiki/FAQ_en

Communication

Clone this wiki locally