Giter Club home page Giter Club logo

sharplua's Introduction

SharpLua 2.0 is a combination of a port of Lua 5.1.5, various interfaces, but will be eventually replaced by new, better, code.
Why did I start with a Lua 5.1.5 C port? because... You Can't Get More Accurate Than The Original (TM), and the C api allows easier porting of C libs.


SharpLua is an implementation of Lua for .NET
It can run lua files including bytecode (compatible with native Lua), create .NET objects and call methods on them (including static methods), and 
supports all standard lua functions. It does not support C Libraries.

To use in your projects, just add a reference to the SharpLua.dll file and use the 
SharpLua.LuaInterface class or the SharpLua.LuaRuntime, SharpLua.Lua is the raw Lua API.

NOTE: If you simplify the AST, you CAN NOT use a reconstructor that operates on the tokens unless you patch the tokens, as the Simplification process does not do that

Features Lua 5.1.5 doesn't have:
- table.unpack (similar to _G.unpack)
- a large extension library
- clr library (allows .NET object access)
- Syntax extensions
    - ! (not)
    - >> (right shift)
    - << (left shift)
    - & (bitwise and)
    - | (bitwise or)
    - ^^ (Xor)
    - ~(bitwise not)
    - using/do statements
    - named functions in tables (e.g. { function x() end })

Current projects:
SharpLua                     The SharpLua core, along with a LASM library
SharpLua.Interactive         SharpLua REPL
SharpLua.InterfacingTests    SharpLua interfacing tests. As apposed to using the raw Lua API.
SharpLua.Compiler            SharpLua bytecode compiler

Future projects:
SharpLua.Decompiler          SharpLua bytecode decompiler
SharpLua.Web                 Web handler for #Lua
SharpLua SharpDevelop AddIn  Support SharpLua/Lua files and projects, GUI 
                                designer, and msbuild project builder
SharpLua Wpf support

sharplua's People

Contributors

efrederickson avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.