An interpreter for the Lua language, written entirely in C# for the .NET, Mono, Xamarin and Unity3D platforms, including handy remote debugger facilities.
See the codeA complete Lua solution written entirely in C# for the .NET, Mono, Xamarin and Unity3D platforms.
Features:
For highlights on differences between MoonSharp and standard Lua, see http://www.moonsharp.org/moonluadifferences.html
Please see http://www.moonsharp.org for downloads, infos, tutorials, etc.
tools/upm/stage-local-package.sh 3.0.0-local
cd .upm-staging/org.moonsharp.moonsharp
npm pack
This produces a tarball like:
org.moonsharp.moonsharp-3.0.0-local.tgz
Install from version branch:
Packages/manifest.json, add:
"org.moonsharp.moonsharp": "https://github.com/moonsharp-devs/moonsharp.git?path=/interpreter#upm/v3.0"upm/v3"org.moonsharp.debugger.vscode": "https://github.com/moonsharp-devs/moonsharp.git?path=/debugger/vscode#upm/v3.0"[!NOTE] Beta branches are available with names like `upm/beta/v3.0`
License
The program and libraries are released under a 3-clause BSD license - see the license section.
Parts of the string library are based on the KopiLua project (https://github.com/NLua/KopiLua). Debugger icons are from the Eclipse project (https://www.eclipse.org/).
Usage
Use of the library is easy as:
double MoonSharpFactorial()
{
string script = @"
-- defines a factorial function
function fact (n)
if (n == 0) then
return 1
else
return n*fact(n - 1)
end
end
return fact(5)";
DynValue res = Script.RunString(script);
return res.Number;
}
For more in-depth tutorials, samples, etc. please refer to http://www.moonsharp.org/getting_started.html
3,844 followers · starred Jun 2021
11,137 followers · starred Feb 2016
16 followers · starred Dec 2018
42 followers · starred May 2020
An interpreter for the Lua language, written entirely in C# for the .NET, Mono, Xamarin and Unity3D platforms, including handy remote debugger facilities.
See the codeA complete Lua solution written entirely in C# for the .NET, Mono, Xamarin and Unity3D platforms.
Features:
For highlights on differences between MoonSharp and standard Lua, see http://www.moonsharp.org/moonluadifferences.html
Please see http://www.moonsharp.org for downloads, infos, tutorials, etc.
tools/upm/stage-local-package.sh 3.0.0-local
cd .upm-staging/org.moonsharp.moonsharp
npm pack
This produces a tarball like:
org.moonsharp.moonsharp-3.0.0-local.tgz
Install from version branch:
Packages/manifest.json, add:
"org.moonsharp.moonsharp": "https://github.com/moonsharp-devs/moonsharp.git?path=/interpreter#upm/v3.0"upm/v3"org.moonsharp.debugger.vscode": "https://github.com/moonsharp-devs/moonsharp.git?path=/debugger/vscode#upm/v3.0"[!NOTE] Beta branches are available with names like `upm/beta/v3.0`
License
The program and libraries are released under a 3-clause BSD license - see the license section.
Parts of the string library are based on the KopiLua project (https://github.com/NLua/KopiLua). Debugger icons are from the Eclipse project (https://www.eclipse.org/).
Usage
Use of the library is easy as:
double MoonSharpFactorial()
{
string script = @"
-- defines a factorial function
function fact (n)
if (n == 0) then
return 1
else
return n*fact(n - 1)
end
end
return fact(5)";
DynValue res = Script.RunString(script);
return res.Number;
}
For more in-depth tutorials, samples, etc. please refer to http://www.moonsharp.org/getting_started.html
3,844 followers · starred Jun 2021
11,137 followers · starred Feb 2016
16 followers · starred Dec 2018
42 followers · starred May 2020