Mercurial Hosting > luan
comparison core/src/luan/modules/BasicLuan.java @ 233:ef39bc4d3f70
basic lucene works
git-svn-id: https://luan-java.googlecode.com/svn/trunk@234 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 02 Oct 2014 02:58:55 +0000 |
parents | ec016471c6eb |
children | 1fada5587469 |
comparison
equal
deleted
inserted
replaced
232:9ce18106f95a | 233:ef39bc4d3f70 |
---|---|
28 add( module, "assert_boolean", LuanState.class, Boolean.TYPE ); | 28 add( module, "assert_boolean", LuanState.class, Boolean.TYPE ); |
29 add( module, "assert_nil", LuanState.class, Object.class ); | 29 add( module, "assert_nil", LuanState.class, Object.class ); |
30 add( module, "assert_number", LuanState.class, Number.class ); | 30 add( module, "assert_number", LuanState.class, Number.class ); |
31 add( module, "assert_string", LuanState.class, String.class ); | 31 add( module, "assert_string", LuanState.class, String.class ); |
32 add( module, "assert_table", LuanState.class, LuanTable.class ); | 32 add( module, "assert_table", LuanState.class, LuanTable.class ); |
33 add( module, "assert_integer", LuanState.class, Integer.TYPE ); | |
33 add( module, "do_file", LuanState.class, String.class ); | 34 add( module, "do_file", LuanState.class, String.class ); |
34 add( module, "error", LuanState.class, Object.class ); | 35 add( module, "error", LuanState.class, Object.class ); |
35 add( module, "get_metatable", LuanState.class, Object.class ); | 36 add( module, "get_metatable", LuanState.class, Object.class ); |
36 add( module, "ipairs", LuanState.class, LuanTable.class ); | 37 add( module, "ipairs", LuanState.class, LuanTable.class ); |
37 add( module, "load", LuanState.class, String.class, String.class, LuanTable.class, Boolean.class ); | 38 add( module, "load", LuanState.class, String.class, String.class, LuanTable.class, Boolean.class ); |
192 if( v != null ) | 193 if( v != null ) |
193 throw luan.exception("bad argument #1 (nil expected, got "+Luan.type(v)+")"); | 194 throw luan.exception("bad argument #1 (nil expected, got "+Luan.type(v)+")"); |
194 return v; | 195 return v; |
195 } | 196 } |
196 | 197 |
198 public static int assert_integer(LuanState luan,int v) throws LuanException { | |
199 return v; | |
200 } | |
201 | |
197 public static String repr(LuanState luan,Object v) throws LuanException { | 202 public static String repr(LuanState luan,Object v) throws LuanException { |
198 return luan.repr(v); | 203 return luan.repr(v); |
199 } | 204 } |
200 | 205 |
201 public static LuanFunction range(LuanState luan,final double from,final double to,Double stepV) throws LuanException { | 206 public static LuanFunction range(LuanState luan,final double from,final double to,Double stepV) throws LuanException { |