Mercurial Hosting > luan
comparison src/luan/lib/BasicLib.java @ 118:735708619119
add Debug.debug()
git-svn-id: https://luan-java.googlecode.com/svn/trunk@119 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Sun, 01 Jun 2014 07:07:31 +0000 |
parents | 1ff1c32417eb |
children | d7be9b3abf1a |
comparison
equal
deleted
inserted
replaced
117:e935581cf9fb | 118:735708619119 |
---|---|
86 return LuanCompiler.compileInteractive(luan,new LuanSource(sourceName,text)); | 86 return LuanCompiler.compileInteractive(luan,new LuanSource(sourceName,text)); |
87 else | 87 else |
88 return LuanCompiler.compileModule(luan,new LuanSource(sourceName,text)); | 88 return LuanCompiler.compileModule(luan,new LuanSource(sourceName,text)); |
89 } | 89 } |
90 | 90 |
91 | |
92 public static LuanFunction load_file(LuanState luan,String fileName) throws LuanException { | 91 public static LuanFunction load_file(LuanState luan,String fileName) throws LuanException { |
93 try { | 92 try { |
94 String src = fileName==null ? Utils.readAll(new InputStreamReader(System.in)) : Utils.read(new File(fileName)); | 93 String src = fileName==null ? Utils.readAll(new InputStreamReader(System.in)) : Utils.read(new File(fileName)); |
95 return load(luan,src,fileName,false); | 94 return load(luan,src,fileName,false); |
96 } catch(IOException e) { | 95 } catch(IOException e) { |