Commit Graph

190 Commits

Author SHA1 Message Date
James Roseborough
194b776317 Add synchronization to CoerceJavaToLua.COERCIONS map. 2018-09-13 11:53:24 +02:00
James Roseborough
828e4be019 Fix JsePlatform.luaMain() to provide an "arg" table in the chunk's environment. 2018-09-13 11:53:00 +02:00
James Roseborough
b545646922 Add utilities and sample code to load luaj in custom class loader for strong sandboxing, and use of orphaned threads. 2015-04-17 02:59:50 +00:00
James Roseborough
70f7859cee Fix links in javadoc 2015-04-16 04:56:03 +00:00
James Roseborough
878bf5ac78 Improve string lib factoring, javadoc on lib loading functions. 2015-04-05 16:19:13 +00:00
James Roseborough
237c384d55 LuaScriptEngineFactory.getScriptEngine() now returns new instance of lua script engine for each call. 2015-03-18 15:07:56 +00:00
James Roseborough
31c13af7b4 Let os.getenv() return System.getenv() values first for JSE, then fall back to properties 2015-03-15 23:23:38 +00:00
James Roseborough
8c8c98fb00 Allow access to Java inner classes using lua field syntax. 2015-03-14 17:53:55 +00:00
James Roseborough
c8e4bea43d Improve string byte backing ownership, add gradle file, up version, improve build packaging rules. 2015-03-09 06:32:54 +00:00
James Roseborough
c5081c5de1 Convert anonymous classes to inner classes (gradle build support). 2015-03-08 20:22:30 +00:00
James Roseborough
83d54e9d77 Coerce byte[] to LuaString, pass LuaValue as-is in CoerceJavaToLua.coerce(). 2014-07-04 02:58:44 +00:00
James Roseborough
7d06027154 Fix bug in Globals.UTF8Stream affecting loading from Readers. Add buffered input for compiling and loading of scripts. 2014-07-03 21:44:27 +00:00
James Roseborough
a6105d5f62 Rename Globals.FINDER to Globals.finder. 2014-03-09 18:00:40 +00:00
James Roseborough
e9ee95fd58 Autoflush and encode written bytes in script contexts (fixes issue #20) 2014-03-09 17:59:25 +00:00
James Roseborough
736218d1f2 Pass user-supplied ScriptContext to script engine evaluation (fixes issue #21). 2014-03-09 16:45:57 +00:00
James Roseborough
8201095b0d Let sample applet use a plain class loader within the luajava library. 2014-01-16 07:13:15 +00:00
James Roseborough
de33943eaf Update javadoc comments related to library initialization and loading lua code. 2013-12-29 22:49:23 +00:00
James Roseborough
04fd646c87 Update javadoc comments related to library inintialization. 2013-11-22 17:13:55 +00:00
James Roseborough
2123d3f924 Refactor API's related to compiling and loading scripts and character encoding handling. 2013-09-18 05:32:30 +00:00
James Roseborough
9b59234327 Fix Globals.load() to call the library with an empty modname and the globals as the environment. Change standard libraries to be called with two arguments, a modname and an environment. 2013-07-04 15:54:36 +00:00
Ian Farmer
120ac758c4 Fix bug in LuaJava overload resolution. 2013-07-04 06:53:03 +00:00
James Roseborough
711c8c817f Fix Lua to Java coercion directly on Java classes. 2013-07-01 14:45:34 +00:00
James Roseborough
869f0e003c Coerce script engine eval() return values to Java. 2013-07-01 13:49:52 +00:00
James Roseborough
9a3f6161ce Fix pluggable scripting engine lookup, simplify implementation, and add unit tests. 2013-07-01 05:51:27 +00:00
James Roseborough
424e80900a Implement redirection for pluggable scripting contexts 2013-02-03 01:29:46 +00:00
James Roseborough
8a93c061f7 Implement redirection for pluggable scripting contexts 2013-02-03 00:22:47 +00:00
James Roseborough
59496e6aa0 Fix typo. 2012-10-10 03:06:21 +00:00
James Roseborough
447c7f9850 Let generated code have class names that match variable names used in function creation. 2012-10-05 04:26:25 +00:00
James Roseborough
1f69fa38ba Clean up build for distribution. 2012-10-03 05:43:35 +00:00
James Roseborough
7b6381c352 Add ability to create runnable jar file from lua script with sample build file build-app.xml 2012-10-02 07:00:17 +00:00
James Roseborough
497a9f2346 Clean up build for distribution. 2012-10-02 02:48:43 +00:00
James Roseborough
bee51df7b3 Clean up build for distribution. 2012-10-02 02:34:34 +00:00
James Roseborough
8b50a3b36b Improve compatibility with lua 5.2. 2012-09-30 15:42:36 +00:00
James Roseborough
be4a320bf9 Improve compatibility with lua 5.2. 2012-09-21 05:24:58 +00:00
James Roseborough
0f70a8e962 Fixes to luajc bytecode generation. 2012-09-19 03:19:55 +00:00
James Roseborough
4bf132c01e Fix for loop processing in luajc compiler code generator for lua 5.3 bytecodes 2012-09-18 14:17:00 +00:00
James Roseborough
f786802bf1 Move static variables used by libraries into explicit Globals object for better thread safety. 2012-09-14 04:12:50 +00:00
Ian Farmer
88d58a348d Implement new bit32 module added in Lua 5.2. 2012-09-13 03:57:48 +00:00
James Roseborough
382b3b998e Refactor math library 2012-09-10 14:21:18 +00:00
James Roseborough
f8b7e1ee1c Refactor table library to match lua 5.2 2012-09-10 04:59:45 +00:00
James Roseborough
6ba1f86b7b Fix global "arg" value for scripts run tom "lua" command. 2012-09-10 02:45:53 +00:00
James Roseborough
d5456b4b93 Lua 5.2 compatibility fixes. 2012-09-09 16:26:17 +00:00
James Roseborough
7ae41da5e1 Update LuaJC to work with lua 5.2 model of environments. 2012-09-08 21:16:51 +00:00
James Roseborough
f224957b87 Remove support for lua2java within luaj. 2012-09-08 04:15:06 +00:00
James Roseborough
f2d1106fe5 Simplify layout of lua test script locations. 2012-09-07 14:05:41 +00:00
James Roseborough
3bacea878e Remove env from LuaFunction, replace with upValiue array, and remove most occurances of setfenv and getfenv. 2012-09-07 04:36:50 +00:00
James Roseborough
a5fddce465 Lua 5.2 compatibility updates to VM and base and package libraries. 2012-09-06 04:01:28 +00:00
James Roseborough
ed4554fa7d Lua 5.2 compatibility fixes. 2012-09-05 04:24:44 +00:00
James Roseborough
04faa79853 Turn on LuaParser error reporting. 2012-09-01 16:51:45 +00:00
James Roseborough
2bf4c5767b Add line number tracking in elements parsed using LuaParser. 2012-09-01 15:56:09 +00:00