Up version to beta3

This commit is contained in:
James Roseborough
2014-01-02 15:55:36 +00:00
parent 48a214fc20
commit e98f349e9c
2 changed files with 23 additions and 20 deletions

View File

@@ -16,7 +16,7 @@
Getting Started with LuaJ
</h1>
James Roseborough, Ian Farmer, Version 3.0-beta2
James Roseborough, Ian Farmer, Version 3.0-beta3
<p>
<small>
Copyright &copy; 2009-2014 Luaj.org.
@@ -120,7 +120,7 @@ in comparison with the standard C distribution.
<td>16.794</td>
<td>11.274</td>
<td>Java</td>
<td>java -cp luaj-jse-3.0-beta2.jar;bcel-5.2.jar lua <b>-b</b> fannkuch.lua 10</td></tr>
<td>java -cp luaj-jse-3.0-beta3.jar;bcel-5.2.jar lua <b>-b</b> fannkuch.lua 10</td></tr>
<tr valign="top">
<td></td>
<td></td>
@@ -130,7 +130,7 @@ in comparison with the standard C distribution.
<td>36.894</td>
<td>15.163</td>
<td></td>
<td>java -cp luaj-jse-3.0-beta2.jar lua -n fannkuch.lua 10</td></tr>
<td>java -cp luaj-jse-3.0-beta3.jar lua -n fannkuch.lua 10</td></tr>
<tr valign="top">
<td>lua</td>
<td>5.1.4</td>
@@ -186,7 +186,7 @@ It is also faster than Java-lua implementations Jill, Kahlua, and Mochalua for a
From the main distribution directory line type:
<pre>
java -cp lib/luaj-jse-3.0-beta2.jar lua examples/lua/hello.lua
java -cp lib/luaj-jse-3.0-beta3.jar lua examples/lua/hello.lua
</pre>
<p>
@@ -198,7 +198,7 @@ You should see the following output:
To see how luaj can be used to acccess most Java API's including swing, try:
<pre>
java -cp lib/luaj-jse-3.0-beta2.jar lua examples/lua/swingapp.lua
java -cp lib/luaj-jse-3.0-beta3.jar lua examples/lua/swingapp.lua
</pre>
<h2>Compile lua source to lua bytecode</h2>
@@ -207,8 +207,8 @@ To see how luaj can be used to acccess most Java API's including swing, try:
From the main distribution directory line type:
<pre>
java -cp lib/luaj-jse-3.0-beta2.jar luac examples/lua/hello.lua
java -cp lib/luaj-jse-3.0-beta2.jar lua luac.out
java -cp lib/luaj-jse-3.0-beta3.jar luac examples/lua/hello.lua
java -cp lib/luaj-jse-3.0-beta3.jar lua luac.out
</pre>
<p>
@@ -222,8 +222,8 @@ Luaj can compile lua sources or binaries directly to java bytecode if the bcel l
<pre>
ant bcel-lib
java -cp &quot;lib/luaj-jse-3.0-beta2.jar;lib/bcel-5.2.jar&quot; luajc -s examples/lua -d . hello.lua
java -cp &quot;lib/luaj-jse-3.0-beta2.jar;.&quot; lua -l hello
java -cp &quot;lib/luaj-jse-3.0-beta3.jar;lib/bcel-5.2.jar&quot; luajc -s examples/lua -d . hello.lua
java -cp &quot;lib/luaj-jse-3.0-beta3.jar;.&quot; lua -l hello
</pre>
<p>
@@ -234,7 +234,7 @@ but the compiled classes must be in the class path at runtime, unless runtime ji
<p>
Lua scripts can also be run directly in this mode without precompiling using the <em>lua</em> command with the <b><em>-b</em></b> option and providing the <em>bcel</em> library in the class path:
<pre>
java -cp &quot;lib/luaj-jse-3.0-beta2.jar;lib/bcel-5.2.jar&quot; lua -b examples/lua/hello.lua
java -cp &quot;lib/luaj-jse-3.0-beta3.jar;lib/bcel-5.2.jar&quot; lua -b examples/lua/hello.lua
</pre>
@@ -278,7 +278,7 @@ A simple example may be found in
</pre>
<p>
You must include the library <b>lib/luaj-jse-3.0-beta2.jar</b> in your class path.
You must include the library <b>lib/luaj-jse-3.0-beta3.jar</b> in your class path.
<h2>Run a script in a MIDlet</h2>
@@ -305,7 +305,7 @@ A simple example may be found in
</pre>
<p>
You must include the library <b>lib/luaj-jme-3.0-beta2.jar</b> in your midlet jar.
You must include the library <b>lib/luaj-jme-3.0-beta3.jar</b> in your midlet jar.
<p>
An ant script to build and run the midlet is in
@@ -335,7 +335,7 @@ You can also look up the engine by language "lua" or mimetypes "text/lua" or "ap
All standard aspects of script engines including compiled statements are supported.
<p>
You must include the library <b>lib/luaj-jse-3.0-beta2.jar</b> in your class path.
You must include the library <b>lib/luaj-jse-3.0-beta3.jar</b> in your class path.
<p>
A working example may be found in
@@ -346,8 +346,8 @@ A working example may be found in
To compile and run it using Java 1.6 or higher:
<pre>
javac -cp lib/luaj-jse-3.0-beta2.jar examples/jse/ScriptEngineSample.java
java -cp &quot;lib/luaj-jse-3.0-beta2.jar;examples/jse&quot; ScriptEngineSample
javac -cp lib/luaj-jse-3.0-beta3.jar examples/jse/ScriptEngineSample.java
java -cp &quot;lib/luaj-jse-3.0-beta3.jar;examples/jse&quot; ScriptEngineSample
</pre>
<h2>Excluding the lua bytecode compiler</h2>
@@ -527,7 +527,7 @@ The following lua script will open a swing frame on Java SE:
See a longer sample in <em>examples/lua/swingapp.lua</em> for details, including a simple animation loop, rendering graphics, mouse and key handling, and image loading.
Or try running it using:
<pre>
java -cp lib/luaj-jse-3.0-beta2.jar lua examples/lua/swingapp.lua
java -cp lib/luaj-jse-3.0-beta3.jar lua examples/lua/swingapp.lua
</pre>
<p>
@@ -717,7 +717,7 @@ javadoc for details on using that class directly.
<h1>6 - <a name="6">Parser</a></h1>
<h2>Javacc Grammar</h2>
A Javacc grammarwas developed to simplify the creation of Java-based parsers for the lua language.
A Javacc grammar was developed to simplify the creation of Java-based parsers for the lua language.
The grammar is specified for <a href="https://javacc.dev.java.net/">javacc version 5.0</a> because that tool generates standalone
parsers that do not require a separate runtime.
@@ -774,7 +774,7 @@ For JSE projects, add this dependency for the luaj-jse jar:
&lt;dependency&gt;
&lt;groupId&gt;org.luaj&lt;/groupId&gt;
&lt;artifactId&gt;luaj-jse&lt;/artifactId&gt;
&lt;version&gt;3.0-beta2&lt;/version&gt;
&lt;version&gt;3.0-beta3&lt;/version&gt;
&lt;/dependency&gt;
</pre>
while for JME projects, use the luaj-jme jar:
@@ -782,7 +782,7 @@ while for JME projects, use the luaj-jme jar:
&lt;dependency&gt;
&lt;groupId&gt;org.luaj&lt;/groupId&gt;
&lt;artifactId&gt;luaj-jme&lt;/artifactId&gt;
&lt;version&gt;3.0-beta2&lt;/version&gt;
&lt;version&gt;3.0-beta3&lt;/version&gt;
&lt;/dependency&gt;
</pre>
@@ -915,6 +915,9 @@ Files are no longer hosted at LuaForge.
<li>Make error message handler function in xpcall per-thread instead of per-globals.</li>
<li>Establish "org.luaj.debug" and "org.luaj.luajc" system properties to configure scripting engine.</li>
<tr valign="top"><td>&nbsp;&nbsp;<b>3.0-beta3</b></td><td><ul>
<li>Fix maven sample code.</li>
</ul></td></tr>
</table></td></tr></table>

View File

@@ -11,7 +11,7 @@
<dependency>
<groupId>org.luaj</groupId>
<artifactId>luaj-jse</artifactId>
<version>3.0-beta2</version>
<version>3.0-beta3</version>
</dependency>
<dependency>
<groupId>junit</groupId>