lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




On Mon, Nov 17, 2008 at 10:42 PM, Patrick Meehan <patrick@groundspeak.com> wrote:
Mochalua is a port of the Lua runtime and API only, not the compiler.

FYI, the latest Metalua runs just fine on it, so there is a compiler for Mochalua! I need to clean up some rough edges, both on Metalua and on my quick&dirty port of Mochalua (from J2ME to plain Java), but I'll publish something ASAP.
 
require 'metalua.compiler'
f, msg = loadstring('print "Compilation went well indeed!"')
if f then print "Compilation seems to have worked fine"
else print ("Fail: "..msg) end
f()

-- Fabien.