# yanghuan/CSharp.lua

The C# to Lua compiler

Repository: https://github.com/yanghuan/CSharp.lua
Canonical: https://ross.abutalabs.com/products/csharplua
Language: C#
License: NOASSERTION
License Family: other
Topics: lua-compiler, cs2lua, csharp-to-lua, csharp, lua, compiler, csharp2lua
Last push: 2026-07-29T02:44:03+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 8, longevity 100
- inputs: {"age_days": 3523, "days_push": 35, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1282, forks 208 (observed 2026-08-28T04:04:13.985848+00:00)

## What it is
A C# to Lua compiler built on Microsoft Roslyn that transpiles C# source code (up to C# 10) into readable Lua code runnable on a Lua VM. It ships with a CoreSystem.lua runtime library so generated code runs without the CLR, and is distributed as a cross-platform .NET command-line tool.

## Use cases
- compile c# code to lua
- write game addons in c# for a lua runtime
- transpile csharp to lua 5.3
- run c# logic inside a lua vm
- generate readable lua from c# source
- target lua environments like wow addons from c#

## When to avoid
- you need full .NET/CLR runtime compatibility or BCL coverage beyond what CoreSystem.lua provides
- your target is Lua 5.1 without the classic-mode limitations
- you need a debugger or tooling ecosystem equivalent to native C# or Lua development

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, cli, developer-tools
- domain: compilers, programming-languages, developer-tools
- platform: cross-platform, cli, lua
- tags: csharp-to-lua, transpiler, roslyn, lua-vm, source-to-source, game-development

## Member repositories
- yanghuan/CSharp.lua (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.985848+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:57:44.001766+00:00, confidence not recorded.
  - readme: https://github.com/yanghuan/CSharp.lua (fetched 2026-08-28T04:04:13.985848+00:00, sha f5bd895a38c5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
