comparison src/luan/lib/BasicLib.java @ 139:3b384dc5ca91

replace WebShell.java with web_shell.luan git-svn-id: https://luan-java.googlecode.com/svn/trunk@140 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 13 Jun 2014 12:26:44 +0000
parents 3119326260ea
children c2ee8a717b73
comparison
equal deleted inserted replaced
138:06159094b802 139:3b384dc5ca91
52 add( global, "set_metatable", LuanTable.class, LuanTable.class ); 52 add( global, "set_metatable", LuanTable.class, LuanTable.class );
53 add( global, "to_number", Object.class, Integer.class ); 53 add( global, "to_number", Object.class, Integer.class );
54 add( global, "to_string", LuanState.class, Object.class ); 54 add( global, "to_string", LuanState.class, Object.class );
55 add( global, "type", Object.class ); 55 add( global, "type", Object.class );
56 global.put( "_VERSION", Luan.version ); 56 global.put( "_VERSION", Luan.version );
57 // add( module, "new_luan" );
57 add( module, "values", new Object[0].getClass() ); 58 add( module, "values", new Object[0].getClass() );
58 } catch(NoSuchMethodException e) { 59 } catch(NoSuchMethodException e) {
59 throw new RuntimeException(e); 60 throw new RuntimeException(e);
60 } 61 }
61 return module; 62 return module;
239 return LuanFunction.NOTHING; 240 return LuanFunction.NOTHING;
240 return new Object[]{i,args[i-1]}; 241 return new Object[]{i,args[i-1]};
241 } 242 }
242 }; 243 };
243 } 244 }
244 245 /*
246 public static LuanTable new_luan() {
247 return LuanState.newStandard().global();
248 }
249 */
245 } 250 }