Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghuan committed Feb 28, 2023
1 parent bf97431 commit 3bddbe7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,10 @@ The C# to Lua compiler.

## Introduction
CSharp.lua is a C# to Lua compiler. Write C# then run on lua VM.
* Build on [Microsoft Roslyn](https://github.com/dotnet/roslyn). Support for C# 9.0.

* Build on [Microsoft Roslyn](https://github.com/dotnet/roslyn). Support for C# 10.
* Highly readable code generation. C# AST ---> Lua AST ---> Lua Code.

* Allowing almost all of the C# language features.

* Provides [CoreSystem.lua](https://github.com/yanghuan/CSharp.lua/tree/master/CSharp.lua/CoreSystem.Lua/CoreSystem) library, can run away of CLR.

* Self-Compiling, run "./test/self-compiling/self.bat".

* Self-Compiling (linux), run "./make" (if no errors, will prompt for fibbonacci 'N' value and generate fib sequence in lua)

* Used by .NET Core, Ability to across platforms.
* Build by .NET Core, Ability to across platforms.

## Sample
C# code
Expand Down Expand Up @@ -78,8 +69,8 @@ Options
-include : the root directory of the CoreSystem library, adds all the dependencies to a single file named out.lua
-noconcurrent : close concurrent compile
```
Make sure that .NET 6.0 is installed.
https://dotnet.microsoft.com/download/dotnet/6.0
Make sure that .NET 7.0 is installed.
https://dotnet.microsoft.com/download/dotnet/7.0


### Download
Expand Down
4 changes: 2 additions & 2 deletions download/autopack.cmd
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
set version=1.7
set version=2.0
set binDir=CSharp.lua
set coreDir=CoreSystem.lua
set _7z="D:\Program Files\7-Zip\7z"
set file=%binDir%-%version%.zip
if exist "%file%" del "%file%"
md %binDir%
xcopy "..\CSharp.lua.Launcher\bin\Release\PublishOutput" %binDir% /s /e /y
dotnet build ../ --output %binDir%
md %coreDir%
xcopy "..\CSharp.lua\CoreSystem.Lua" %coreDir% /s /e /y
%_7z% a %file% %binDir% %coreDir% README.md
Expand Down

0 comments on commit 3bddbe7

Please sign in to comment.