Commit Graph

122 Commits

Author SHA1 Message Date
James Roseborough
504020beda Fix coroutine.wrap() error propogation. 2007-10-23 00:49:52 +00:00
James Roseborough
932960c846 Add tests for pcall, add error() builtin, fix assert(), error levels. 2007-10-23 00:34:04 +00:00
James Roseborough
8248cca2bf implement corouting.wrap(), fix bugs in coroutine.status(), fix StackState.insert() 2007-10-22 21:05:04 +00:00
James Roseborough
78eaaf0fa0 Initial draft of coroutines library. 2007-10-20 00:51:15 +00:00
James Roseborough
8e2ff119f9 Add LValue.toJavaX and VM.pushboxedx() functions for all java basic type conversions 2007-10-18 17:47:01 +00:00
James Roseborough
ccde158514 Fix insert, add LDouble.valueOf() 2007-10-17 17:47:53 +00:00
Shu Lei
a8422a6908 debug support refactoring 2007-10-17 00:56:08 +00:00
Shu Lei
70442348a1 some more refactoring 2007-10-12 23:39:27 +00:00
Shu Lei
38dafdb190 1. some refacotring
2. fixed a few files so that they will compile for j2me
2007-10-12 20:39:26 +00:00
Shu Lei
3138fdee65 refactoring - create new packages: lua.debug.event, lua.debug.request and lua.debug.response 2007-10-12 01:42:42 +00:00
Shu Lei
341a5588b0 first step to bring debugging code to j2me 2007-10-12 01:36:28 +00:00
James Roseborough
6970b30c7a Add math.ceil, math.floor 2007-10-11 03:54:40 +00:00
James Roseborough
5a92c52fd5 Add "j2me" ant target. 2007-10-10 17:53:34 +00:00
James Roseborough
6897febc0a Remove dependence on Arrays.binarySearch 2007-10-10 14:35:35 +00:00
James Roseborough
a5745d5da0 Turn off debug support by default. 2007-10-10 04:34:46 +00:00
James Roseborough
710f13dafc Convert to java 1.3 source style and enable all classes to be built using java class version 1.1 2007-10-10 03:53:22 +00:00
Shu Lei
8eab291c9b make the debugging support code compile under JDK 1.3 2007-10-10 00:26:23 +00:00
James Roseborough
edea16fb91 Convert to 1.1 class file version 2007-10-09 04:10:36 +00:00
James Roseborough
435368ccd9 Fix metatable processing on luaGetTable 2007-10-09 04:09:00 +00:00
Shu Lei
1f817c774c bug fix 2007-10-09 00:25:44 +00:00
James Roseborough
251e055594 Fix StrLib test case by fixing pcall to restore currenct call after exceptions 2007-10-06 18:48:37 +00:00
James Roseborough
0353660299 Convert to new JavaFunction api 2007-10-05 22:00:31 +00:00
James Roseborough
ec9cff9050 Misc fixes to java api 2007-10-05 18:38:42 +00:00
James Roseborough
e4882578f2 Add "Java API" like "C API" for use with JavaFunctions. 2007-10-04 23:51:39 +00:00
James Roseborough
9be13fcc1d Convert return value of luaLength to be int 2007-10-04 23:17:09 +00:00
Shu Lei
a67783899f removed Type.java and updated the depended files to use the new type constants 2007-10-04 21:04:38 +00:00
James Roseborough
eba4f34505 Fix reported type of LBoolean 2007-10-04 20:44:52 +00:00
James Roseborough
72bfd0a376 remove dependence on Type class. 2007-10-04 20:44:03 +00:00
James Roseborough
8ae4299764 centralize type id defs 2007-10-04 20:10:50 +00:00
James Roseborough
9dee79cb80 Make LInteger constructor private and use LInteger.valueOf() everywhere, caching common values. 2007-10-04 17:37:15 +00:00
Shu Lei
885397a74c added back the files that were accidentally deleted 2007-10-03 23:33:45 +00:00
Shu Lei
35d02b287e added debugging support and integrated with Eclipse debugger 2007-10-03 17:39:38 +00:00
Shu Lei
421eface40 added debugging support and integrated with Eclipse debugger 2007-10-03 17:39:37 +00:00
Ian Farmer
cd5f278e7b Compile code at source version 1.3, and exclude sources that require
more recent java features.
2007-09-26 23:27:15 +00:00
James Roseborough
d65729f1d7 Add gmatch implementation 2007-09-26 05:19:25 +00:00
Ian Farmer
11c12281b6 Add a really simple apache ant build script 2007-09-26 01:26:20 +00:00
James Roseborough
673d0e4117 Expose final fields of LString 2007-09-26 00:44:53 +00:00
James Roseborough
edbe168e42 Add Platform manager 2007-09-25 00:32:25 +00:00
Ian Farmer
ec11c472c8 Various changes to bring pm.lua test closer to passing:
* New and complete character class support
 * string.gsub implemented
 * rawset implemented
 * lua_call added (based on lua_pcall)
 * lua_pop added
 * newCall removed; luaGetTable and luaSetTable in LFunction updated to
   use lua_call instead.
 * StandardTest changed to avoid an ArrayIndexOutOfBoundsException

Unfortunately I discovered a problem where execute() will loop around too
many times and call exec() with a call frame that has already completed.
This might be due to the lack of the "tailcalls" field in our CallInfo class
that the C version maintains?
2007-09-24 04:35:53 +00:00
Ian Farmer
f801e648bb New math.cos and math.sqrt functions from Lua standard library, with new
math library test case. Also, character encoding of LuaCompat was changed
from something that Eclipse was not handling well to UTF-8.
2007-09-23 03:54:06 +00:00
Ian Farmer
5536159916 Now that compiler is integrated, change LuaJTest to load source files when
pre-compiled script is missing.
2007-09-23 03:51:26 +00:00
James Roseborough
9f6d7543cd Remove compiler dependence on mark()/reset() 2007-09-22 16:57:25 +00:00
James Roseborough
e07382c90d Fix autoload 2007-09-22 07:14:23 +00:00
James Roseborough
e154a158a9 Add ipow, to compute power for integers. 2007-09-22 05:25:02 +00:00
James Roseborough
90cc227e34 Add compiler by default. 2007-09-22 00:25:36 +00:00
James Roseborough
be87758fe5 add compiler to vm as add-on 2007-09-21 16:50:29 +00:00
James Roseborough
2db26b0844 Many built-ins: ipairs, table.insert, require, pcall 2007-09-21 00:34:14 +00:00
James Roseborough
d45bd96536 Add "require" support. 2007-09-20 18:17:10 +00:00
Ian Farmer
fc8c790b0d Fixes for string.rep, string.byte, string.lower, and string.upper. Also
factor out negative index handling to separate function, posrelat (to
match C Lua). When converting numbers to strings, see if the double value
can be represented exactly as a long, and if so format the string as
an integer. With these changes the standard test case "strings.lua" runs
to line 104 (over half way through!), where it uses string.format.
2007-09-19 04:44:31 +00:00
James Roseborough
32e1fedba5 Improve error handling, introduce lua stack trace processing. 2007-09-18 22:55:22 +00:00