Skip to content

agladysh/js-lua

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 

js-lua: Run Lua from JavaScript

About

JS-Lua is a JavaScript library which allows you to run Lua code in browser (on the client-side). JS-Lua also provides means for embedded Lua code to call JavaScript.

JS-Lua no longer maintained. Please use other Lua-in-browser implementation, like lua5.1.js.

See the copyright information in the file named COPYRIGHT.

Technologies

-- Jill, Lua implementation in Java (MIT license, http://code.google.com/p/jillcode/)

-- Google Web Toolkit, used as Java to JavaScript compiler (Apache License 2.0, http://code.google.com/webtoolkit/).

-- aelua, used as GWT port of Jill (MIT license, http://code.google.com/p/aelua/).

Note to the library users: everything is built-in, you do not need any of tools listed here to use with JS-Lua.

API

(To be implemented)

JS

  • JSLua.callLua(functionName, args, ...) --> array of return values

  • JSLua.provideFile(path, file_contents_string)

  • JSLua.doFile(path)

Lua

  • JSLua.callJS(functionName, args, ...) --> return value

  • JSLua.dofile(filename)

  • JSLua.loadfile(filename, chunkname)

About

Run Lua from JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published