Mercurial Hosting > luan
comparison core/src/luan/Luan.java @ 693:ca169567ce07
module URIs must now include ".luan"
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 19 Apr 2016 15:54:11 -0600 |
parents | d3e5414bdf4c |
children | b620b8e1010f |
comparison
equal
deleted
inserted
replaced
692:7bd97d642f37 | 693:ca169567ce07 |
---|---|
6 | 6 |
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 = new LuanState(); | 10 LuanState luan = new LuanState(); |
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"); |
12 standalone.call(luan,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[]) ) |