comparison src/luan/tools/CmdLine.java @ 133:98aba462c422

add tools/cmd_line.luan git-svn-id: https://luan-java.googlecode.com/svn/trunk@134 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 11 Jun 2014 05:20:19 +0000
parents 15a8e6588f3c
children
comparison
equal deleted inserted replaced
132:14281d5bd36f 133:98aba462c422
13 public class CmdLine { 13 public class CmdLine {
14 14
15 public static void main(String[] args) { 15 public static void main(String[] args) {
16 LuanState luan = LuanState.newStandard(); 16 LuanState luan = LuanState.newStandard();
17 try { 17 try {
18 LuanFunction standalone = (LuanFunction)luan.get("Basic.standalone"); 18 LuanFunction standalone = (LuanFunction)BasicLib.load_java_resource(luan,"luan/tools/cmd_line.luan");
19 luan.call(standalone,args); 19 luan.call(standalone,args);
20 } catch(LuanException e) { 20 } catch(LuanException e) {
21 // System.err.println(e.getMessage()); 21 // System.err.println(e.getMessage());
22 e.printStackTrace(); 22 e.printStackTrace();
23 System.exit(-1); 23 System.exit(-1);