Mercurial Hosting > luan
comparison core/src/luan/Luan.java @ 574:6cc2f047019b
remove LuanState.call()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 13 Jul 2015 12:31:53 -0600 |
parents | 0dfc01d8d42d |
children | 8e8c30b72e9b |
comparison
equal
deleted
inserted
replaced
573:894f991baac5 | 574:6cc2f047019b |
---|---|
7 public final class Luan { | 7 public final class Luan { |
8 | 8 |
9 public static void main(String[] args) throws LuanException { | 9 public static void main(String[] args) throws LuanException { |
10 LuanState luan = LuanState.newInstance(); | 10 LuanState luan = LuanState.newInstance(); |
11 LuanFunction standalone = (LuanFunction)BasicLuan.load_file(luan,"classpath:luan/cmd_line.luan",null); | 11 LuanFunction standalone = (LuanFunction)BasicLuan.load_file(luan,"classpath:luan/cmd_line.luan",null); |
12 luan.call(standalone,args); | 12 standalone.call(luan,args); |
13 } | 13 } |
14 | 14 |
15 public static Object first(Object obj) { | 15 public static Object first(Object obj) { |
16 if( !(obj instanceof Object[]) ) | 16 if( !(obj instanceof Object[]) ) |
17 return obj; | 17 return obj; |