Commit Graph

25 Commits

Author SHA1 Message Date
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
0353660299 Convert to new JavaFunction api 2007-10-05 22:00:31 +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
8ae4299764 centralize type id defs 2007-10-04 20:10:50 +00:00
Shu Lei
885397a74c added back the files that were accidentally deleted 2007-10-03 23:33:45 +00:00
Shu Lei
421eface40 added debugging support and integrated with Eclipse debugger 2007-10-03 17:39:37 +00:00
James Roseborough
2db26b0844 Many built-ins: ipairs, table.insert, require, pcall 2007-09-21 00:34:14 +00:00
James Roseborough
32e1fedba5 Improve error handling, introduce lua stack trace processing. 2007-09-18 22:55:22 +00:00
James Roseborough
5efda81b17 Add loadstring and other standard library commands (untested) 2007-09-15 00:51:30 +00:00
Ian Farmer
737c5e2855 Various changes:
(1) New lua compatibility bindings, including select() and math functions
(2) fix some VM bugs
(3) fix some table bugs, and attempt to restore metatable functionality.
2007-08-01 04:15:27 +00:00
James Roseborough
8bf4c82a12 Rework the main API"s that implement the calling convention. Provide utility methods to get arguments that were supplied, and provide return values. Add a VM interface to clarify the relationship between the VM, things that call the VM, and things that are called by the VM. Make the code more closely aligned with the C++ version. 2007-07-24 05:06:10 +00:00
Ian Farmer
635f127cd0 Add new built-in function type() that returns the name of the type of
the given value as a string. Includes test case.
2007-07-16 02:37:08 +00:00
Ian Farmer
241edfbf37 Added a JUnit test case. Unfortunately, it will almost certainly not work on
Windows in its present form, and only one of the test cases passes.
In addition two changes to print() were made: output can be redirected to
an arbitrary OutputStream and tabs are no longer printed at the end of
each line.
2007-07-04 04:25:06 +00:00
James Roseborough
c8e1934916 Refactor call stack and its use throughout. CallFrame now does all bytecode processing, and the callframe is reinitialized anytime something might have changed, like a function call. 2007-06-27 06:43:33 +00:00
James Roseborough
99077764ac Fix basic class processing via metatables. Make print output more closely match that produces by C interpreter 2007-06-19 04:25:34 +00:00
James Roseborough
54927db2fc Implement most of metatables 2007-06-17 02:58:40 +00:00
James Roseborough
5d3c86e552 Partial implementation of metatables. 2007-06-16 15:31:27 +00:00
James Roseborough
a9c72414d1 Fix for loop that uses iterator 2007-06-16 02:47:47 +00:00
James Roseborough
4fb619fe87 fix builtins to keep them from obliterating stack values. 2007-06-15 15:20:21 +00:00
James Roseborough
be20581731 Improve call stack handling to prepare for propert tail call handling. 2007-06-15 06:41:40 +00:00
James Roseborough
b6f123d5e5 Improve vararg handling logic. 2007-06-12 06:22:55 +00:00
James Roseborough
da6f63bb3d Fix calling convention by managing top of stack and adjusting on way in and out of function calls. 2007-06-11 05:51:19 +00:00
James Roseborough
05cfdaa33b Improve calling convention handling when the number of arguments doesn't match the expected number, and the number of return values doesn't match those needed. 2007-06-11 04:30:03 +00:00
James Roseborough
de763e0a1e Support for iterator-style for loops, and "pairs" builting function 2007-06-10 22:53:09 +00:00
James Roseborough
70dfc20f57 Initial draft of interpreter. Lua compiled "chunks" can be unmarshalled. Approximately half of bytecodes implemented in some form or another. 2007-06-08 05:11:37 +00:00