Giter VIP home page Giter VIP logo

starlight's Introduction

Starlight

A Lua to ECMAScript 6 transpiler.


Getting started

Install dependencies, then build the Grunt plugin:

npm install
grunt grunt-plugin
npm link dist/build-tools/grunt-starlight

Build runtime, transpile tests, then run:

grunt

Tests will also be available to run in the browser at dist/test/index.html.

Kitchen Sink

The Kitchen Sink edition of Starlight includes: - Starlight runtime, - Starlight parser, - DOMAPI - a build of Babel.js

Together these elements will enable you to execute Lua source code from <script> tags in the browser.

Around 85% of the file size of the Kitchen Sink is Babel, hence work is on the roadmap (below) to remove the need for it.

To build it:

grunt kitchen-sink

You'll then find the built file and example usage in dist/kitchen-sink.

Roadmap

The next features to add:

  • Performance tests
  • Add plug-ins architecture
    • Coroutines (as generators are not a 1:1 map)
    • Lua -> ES5 (remove need for Babel in browser)
  • Customisation of environment and plugins at build-time
    • Selectively add standard libs.
  • Implement missing standard lib functions
    • string.format()
    • string.dump()
    • load()
    • loadfile()

starlight's People

Contributors

paulcuth avatar

Watchers

 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.