Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

agladysh/js-lua

Repository files navigation

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

AltStyle によって変換されたページ (->オリジナル) /