Initial sources for planned 2.0 luaj vm release. Most interpreter features and library functions working.

This commit is contained in:
James Roseborough
2009-10-27 06:12:24 +00:00
parent d16fad00e8
commit 3863ff8e46
116 changed files with 33600 additions and 122 deletions

89
names.csv Normal file
View File

@@ -0,0 +1,89 @@
LuaValue Consructors,,Return type,,,,,,,,,,
,valueOf(boolean),LuaBoolean,,,,,,,,,,
,valueOf(null),LuaNil,,,,,,,,,,
,valueOf(int) ,LuaInteger,,,,,,,,,,
,valueOf(double),LuaNumber,,,,,,,,,,
,valueOf(long),LuaNumber,,,,,,,,,,
,valueOf(String),LuaString,,,,,,,,,,
,tableOf(...),LuaTable,,,,,,,,,,
,listOf(LuaValue[]),LuaTable,,,,,,,,,,
,userdataOf(Object),LuaUserdata,,,,,,,,,,
,"uerdataOf(Object,Value)",LuaUserdata,,,,,,,,,,
,,,,,,,Arugment type,,,,,
,,,LuaBoolean,LuaClosure,LuaFunction,LuaDouble,LuaInteger,LuaNil,LuaString,LuaTable,LuaThread,LuaUserdata
Type Check Functions,,,,,,,,,,,,
,isboolean,boolean,TRUE,f,f,f,f,f,f,f,f,f
,isclosure,boolean,f,TRUE,f,f,f,f,f,f,f,f
,isfunction,boolean,f,TRUE,TRUE,f,f,f,f,f,f,f
,isint,boolean,f,f,f,f,TRUE,f,true | f,f,f,f
,isinttype,boolean,f,f,f,f,TRUE,f,f,f,f,f
,isnumber,boolean,f,f,f,TRUE,TRUE,f,true | f,f,f,f
,islong,boolean,f,f,f,true | f,TRUE,f,true | f,f,f,f
,isnil,boolean,f,f,f,f,f,TRUE,f,f,f,f
,isstring,boolean,f,f,f,true | f,TRUE,f,TRUE,f,f,f
,istable,boolean,f,f,f,f,f,f,f,TRUE,f,f
,isthread,boolean,f,f,f,f,f,f,f,f,TRUE,f
,isuserdata,boolean,f,f,f,f,f,f,f,f,f,TRUE
,isuserdata(Class c),boolean,f,f,f,f,f,f,f,f,f,true | f
Java Type Coercion Functions,,,,,,,,,,,,
,toboolean,boolean,this.v,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE,TRUE
,tobyte,byte,0,0,0,0,this.v | 0,0,this.v | 0,0,0,0
,tochar,char,0,0,0,0,this.v | 0,0,this.v | 0,0,0,0
,todouble,double,0,0,0,this.v,this.v,0,this.v | 0,0,0,0
,tofloat,float,0,0,0,this.v | 0,this.v,0,this.v | 0,0,0,0
,toint,int,0,0,0,0,this.v,0,this.v | 0,0,0,0
,tolong,long,0,0,0,0,this.v,0,this.v | 0,0,0,0
,toshort,short,0,0,0,0,this.v | 0,0,this.v | 0,0,0,0
,toString,String,"""true""|""false""","""closure: x""","""name""",(str) this.v,(str) this.v,"""nil""",this.v,"""table: x""","""thread: x""","""userdata: x"""
,touserdata,Object,null,null,null,null,null,null,null,null,this,this.instance
,,,LuaBoolean,LuaClosure,LuaFunction,LuaDouble,LuaInteger,LuaNil,LuaString,LuaTable,LuaThread,LuaUserdata
Optional Argument Conversion Functions,,,,,,,,,,,,
,optboolean,boolean,this,e,e,e,e,defval,e,e,e,e
,optclosure,LuaClosure,n,this,e,e,e,defval,e,e,e,e
,optdouble,double,e,e,e,this,this,defval,this | e,e,e,e
,optfunction,LuaFunction,n,this,this,e,e,defval,e,e,e,e
,optint,int,e,e,e,(int) this,this,defval,this | e,e,e,e
,optinteger,LuaInteger,e,e,e,(int) this,this,defval,this | e,e,e,e
,optlong,long,e,e,e,(long) this,this,defval,this | e,e,e,e
,optnumber,LuaNumber,e,e,e,this,this,defval,this | e,e,e,e
,optString,String,e,e,e,(str) this.v,(str) this.v,defval,this,e,e,e
,optstring,LuaString,e,e,e,(str) this.v,(str) this.v,defval,this,e,e,e
,opttable,LuaTable,e,e,e,e,e,defval,e,this,e,e
,optthread,LuaThread,e,e,e,e,e,defval,e,e,this,n
,optuserdata,Object,e,e,e,e,e,defval,e,e,e,instance
,optuserdata(Class c),Object,e,e,e,e,e,defval,e,e,e,instance | e
Required Argument Conversion Functions,,,,,,,,,,,,
,checkboolean,boolean,this,e,e,e,e,e,e,e,e,e
,checkclosure,LuaClosure,e,this,e,e,e,e,e,e,e,e
,checkdouble,double,e,e,e,this,this,e,e,e,e,e
,checkfunction,LuaFunction,e,this,this,e,e,e,e,e,e,e
,checkint,int,e,e,e,this | e,this,e,e,e,e,e
,checkinteger,LuaInteger,e,e,e,e,this,e,e,e,e,e
,checklong,LuaNumber,e,e,e,this | e,this,e,e,e,e,e
,checknumber,LuaNumber,e,e,e,this,this,e,e,e,e,e
,checkString,String,e,e,e,(str) this.v,(str) this.v,e,(str) this.v,e,e,e
,checkstring,LuaString,e,e,e,(str) this.v,(str) this.v,e,this,e,e,e
,checktable,LuaTable,e,e,e,e,e,e,e,this,e,e
,checkthread,LuaThread,e,e,e,e,e,e,e,e,this,e
,checkuserdata,Object,e,e,e,e,e,e,e,e,e,instance
,checkuserdata(Class c),Object,e,e,e,e,e,e,e,e,e,instance | e
,checkvalue,LuaValue,this,this,this,this,this,e,this,this,this,this
,,,LuaBoolean,LuaClosure,LuaFunction,LuaDouble,LuaInteger,LuaNil,LuaString,LuaTable,LuaThread,LuaUserdata
Lua Language Operations,,,,,,,,,,,,
,type,int,TBOOLEAN,TFUNCTION,TFUNCTION,TNUMBER,TNUMBER,TNIL,TSTRING,TTABLE,TTHREAD,TUSERDATA
,typename,string,"""boolean""","""function""","""function""","""number""","""number""","""nil""","""string""","""table""","""thread""","""userdata"""
,len,LuaInteger,e,e,e,e,e,e,#v,#v,e,e
,length,int,e,e,e,e,e,e,#v,#v,e,e
,getmetatable,LuaValue,static,static,static,static,static,static,static,instance,static ,instance
,setmetatable,LuaValue,e,e,e,e,e,e,e,instance,e,instance
,getfenv,LuaTable,e,instance,instance,e,e,e,e,e,instance,e
,setfenv,LuaFunction,e,instance,instance,e,e,e,e,e,instance,e
,call,LuaValue,__call,call,call,__call,__call,__call,__call,__call,__call,__call
,invoke,Varargs,__call,call,call,__call,__call,__call,__call,__call,__call,__call
,get,LuaValue,__index,__index,__index,__index,__index,__index,__index,get,__index,__index
,set,LuaValue,__newindex,__newindex,__newindex,__newindex,__newindex,__newindex,__newindex,set,__newindex,__newindex
1 LuaValue Consructors Return type
2 valueOf(boolean) LuaBoolean
3 valueOf(null) LuaNil
4 valueOf(int) LuaInteger
5 valueOf(double) LuaNumber
6 valueOf(long) LuaNumber
7 valueOf(String) LuaString
8 tableOf(...) LuaTable
9 listOf(LuaValue[]) LuaTable
10 userdataOf(Object) LuaUserdata
11 uerdataOf(Object,Value) LuaUserdata
12 Arugment type
13 LuaBoolean LuaClosure LuaFunction LuaDouble LuaInteger LuaNil LuaString LuaTable LuaThread LuaUserdata
14 Type Check Functions
15 isboolean boolean TRUE f f f f f f f f f
16 isclosure boolean f TRUE f f f f f f f f
17 isfunction boolean f TRUE TRUE f f f f f f f
18 isint boolean f f f f TRUE f true | f f f f
19 isinttype boolean f f f f TRUE f f f f f
20 isnumber boolean f f f TRUE TRUE f true | f f f f
21 islong boolean f f f true | f TRUE f true | f f f f
22 isnil boolean f f f f f TRUE f f f f
23 isstring boolean f f f true | f TRUE f TRUE f f f
24 istable boolean f f f f f f f TRUE f f
25 isthread boolean f f f f f f f f TRUE f
26 isuserdata boolean f f f f f f f f f TRUE
27 isuserdata(Class c) boolean f f f f f f f f f true | f
28 Java Type Coercion Functions
29 toboolean boolean this.v TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
30 tobyte byte 0 0 0 0 this.v | 0 0 this.v | 0 0 0 0
31 tochar char 0 0 0 0 this.v | 0 0 this.v | 0 0 0 0
32 todouble double 0 0 0 this.v this.v 0 this.v | 0 0 0 0
33 tofloat float 0 0 0 this.v | 0 this.v 0 this.v | 0 0 0 0
34 toint int 0 0 0 0 this.v 0 this.v | 0 0 0 0
35 tolong long 0 0 0 0 this.v 0 this.v | 0 0 0 0
36 toshort short 0 0 0 0 this.v | 0 0 this.v | 0 0 0 0
37 toString String "true"|"false" "closure: x" "name" (str) this.v (str) this.v "nil" this.v "table: x" "thread: x" "userdata: x"
38 touserdata Object null null null null null null null null this this.instance
39 LuaBoolean LuaClosure LuaFunction LuaDouble LuaInteger LuaNil LuaString LuaTable LuaThread LuaUserdata
40 Optional Argument Conversion Functions
41 optboolean boolean this e e e e defval e e e e
42 optclosure LuaClosure n this e e e defval e e e e
43 optdouble double e e e this this defval this | e e e e
44 optfunction LuaFunction n this this e e defval e e e e
45 optint int e e e (int) this this defval this | e e e e
46 optinteger LuaInteger e e e (int) this this defval this | e e e e
47 optlong long e e e (long) this this defval this | e e e e
48 optnumber LuaNumber e e e this this defval this | e e e e
49 optString String e e e (str) this.v (str) this.v defval this e e e
50 optstring LuaString e e e (str) this.v (str) this.v defval this e e e
51 opttable LuaTable e e e e e defval e this e e
52 optthread LuaThread e e e e e defval e e this n
53 optuserdata Object e e e e e defval e e e instance
54 optuserdata(Class c) Object e e e e e defval e e e instance | e
55 Required Argument Conversion Functions
56 checkboolean boolean this e e e e e e e e e
57 checkclosure LuaClosure e this e e e e e e e e
58 checkdouble double e e e this this e e e e e
59 checkfunction LuaFunction e this this e e e e e e e
60 checkint int e e e this | e this e e e e e
61 checkinteger LuaInteger e e e e this e e e e e
62 checklong LuaNumber e e e this | e this e e e e e
63 checknumber LuaNumber e e e this this e e e e e
64 checkString String e e e (str) this.v (str) this.v e (str) this.v e e e
65 checkstring LuaString e e e (str) this.v (str) this.v e this e e e
66 checktable LuaTable e e e e e e e this e e
67 checkthread LuaThread e e e e e e e e this e
68 checkuserdata Object e e e e e e e e e instance
69 checkuserdata(Class c) Object e e e e e e e e e instance | e
70 checkvalue LuaValue this this this this this e this this this this
71 LuaBoolean LuaClosure LuaFunction LuaDouble LuaInteger LuaNil LuaString LuaTable LuaThread LuaUserdata
72 Lua Language Operations
73 type int TBOOLEAN TFUNCTION TFUNCTION TNUMBER TNUMBER TNIL TSTRING TTABLE TTHREAD TUSERDATA
74 typename string "boolean" "function" "function" "number" "number" "nil" "string" "table" "thread" "userdata"
75 len LuaInteger e e e e e e #v #v e e
76 length int e e e e e e #v #v e e
77 getmetatable LuaValue static static static static static static static instance static instance
78 setmetatable LuaValue e e e e e e e instance e instance
79 getfenv LuaTable e instance instance e e e e e instance e
80 setfenv LuaFunction e instance instance e e e e e instance e
81 call LuaValue __call call call __call __call __call __call __call __call __call
82 invoke Varargs __call call call __call __call __call __call __call __call __call
83 get LuaValue __index __index __index __index __index __index __index get __index __index
84 set LuaValue __newindex __newindex __newindex __newindex __newindex __newindex __newindex set __newindex __newindex