{"id":13544572,"url":"https://github.com/moonsharp-devs/moonsharp","last_synced_at":"2025-04-07T23:12:32.125Z","repository":{"id":17367248,"uuid":"20139055","full_name":"moonsharp-devs/moonsharp","owner":"moonsharp-devs","description":"An interpreter for the Lua language, written entirely in C# for the .NET, Mono, Xamarin and Unity3D platforms, including handy remote debugger facilities.","archived":false,"fork":false,"pushed_at":"2023-11-30T12:32:18.000Z","size":72989,"stargazers_count":1409,"open_issues_count":118,"forks_count":213,"subscribers_count":90,"default_branch":"master","last_synced_at":"2024-10-29T17:11:57.476Z","etag":null,"topics":["c-sharp","debugger","interpreter","lua","mono","moonsharp","unity3d","xamarin"],"latest_commit_sha":null,"homepage":"http://www.moonsharp.org","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moonsharp-devs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-05-24T20:34:47.000Z","updated_at":"2024-10-29T03:00:42.000Z","dependencies_parsed_at":"2024-06-23T05:07:56.754Z","dependency_job_id":null,"html_url":"https://github.com/moonsharp-devs/moonsharp","commit_stats":null,"previous_names":["xanathar/moonsharp"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonsharp-devs%2Fmoonsharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonsharp-devs%2Fmoonsharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonsharp-devs%2Fmoonsharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moonsharp-devs%2Fmoonsharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moonsharp-devs","download_url":"https://codeload.github.com/moonsharp-devs/moonsharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744335,"owners_count":20988783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-sharp","debugger","interpreter","lua","mono","moonsharp","unity3d","xamarin"],"created_at":"2024-08-01T11:00:51.078Z","updated_at":"2025-04-07T23:12:32.083Z","avatar_url":"https://github.com/moonsharp-devs.png","language":"C#","funding_links":[],"categories":["C sharp"],"sub_categories":["Miscs"],"readme":"MoonSharp       [![Build Status](https://travis-ci.org/xanathar/moonsharp.svg?branch=master)](https://travis-ci.org/xanathar/moonsharp) [![Build Status](https://img.shields.io/nuget/v/MoonSharp.svg)](https://www.nuget.org/packages/MoonSharp/)\n=========\nhttp://www.moonsharp.org   \n\n\n\nA complete Lua solution written entirely in C# for the .NET, Mono, Xamarin and Unity3D platforms.\n\nFeatures:\n* 99% compatible with Lua 5.2 (with the only unsupported feature being weak tables support) \n* Support for metalua style anonymous functions (lambda-style)\n* Easy to use API\n* **Debugger** support for Visual Studio Code (PCL targets not supported)\n* Remote debugger accessible with a web browser and Flash (PCL targets not supported)\n* Runs on .NET 3.5, .NET 4.x, .NET Core, Mono, Xamarin and Unity3D\n* Runs on Ahead-of-time platforms like iOS\n* Runs on IL2CPP converted code\n* Runs on platforms requiring a .NET 4.x portable class library (e.g. Windows Phone)\n* No external dependencies, implemented in as few targets as possible\n* Easy and performant interop with CLR objects, with runtime code generation where supported\n* Interop with methods, extension methods, overloads, fields, properties and indexers supported\n* Support for the complete Lua standard library with very few exceptions (mostly located on the 'debug' module) and a few extensions (in the string library, mostly)\n* Async methods for .NET 4.x targets\n* Supports dumping/loading bytecode for obfuscation and quicker parsing at runtime\n* An embedded JSON parser (with no dependencies) to convert between JSON and Lua tables\n* Easy opt-out of Lua standard library modules to sandbox what scripts can access\n* Easy to use error handling (script errors are exceptions)\n* Support for coroutines, including invocation of coroutines as C# iterators \n* REPL interpreter, plus facilities to easily implement your own REPL in few lines of code\n* Complete XML help, and walkthroughs on http://www.moonsharp.org\n\nFor highlights on differences between MoonSharp and standard Lua, see http://www.moonsharp.org/moonluadifferences.html\n\nPlease see http://www.moonsharp.org for downloads, infos, tutorials, etc.\n\n\n**License**\n\nThe program and libraries are released under a 3-clause BSD license - see the license section.\n\nParts of the string library are based on the KopiLua project (https://github.com/NLua/KopiLua).\nDebugger icons are from the Eclipse project (https://www.eclipse.org/).\n\n\n**Usage**\n\nUse of the library is easy as:\n\n```C#\ndouble MoonSharpFactorial()\n{\n\tstring script = @\"    \n\t\t-- defines a factorial function\n\t\tfunction fact (n)\n\t\t\tif (n == 0) then\n\t\t\t\treturn 1\n\t\t\telse\n\t\t\t\treturn n*fact(n - 1)\n\t\t\tend\n\t\tend\n\n\treturn fact(5)\";\n\n\tDynValue res = Script.RunString(script);\n\treturn res.Number;\n}\n```\n\nFor more in-depth tutorials, samples, etc. please refer to http://www.moonsharp.org/getting_started.html\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoonsharp-devs%2Fmoonsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoonsharp-devs%2Fmoonsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoonsharp-devs%2Fmoonsharp/lists"}