Mercurial Hosting > luan
comparison src/luan/Luan.java @ 1685:46cf5137cb6b
misc fixes
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 08 Jun 2022 20:13:54 -0600 |
parents | bce893009f90 |
children | 164c6ea53147 |
comparison
equal
deleted
inserted
replaced
1684:cfbecf7af56f | 1685:46cf5137cb6b |
---|---|
257 | 257 |
258 | 258 |
259 | 259 |
260 // static | 260 // static |
261 | 261 |
262 public static String[] args = null; | |
263 | |
262 public static void main(String[] args) throws LuanException { | 264 public static void main(String[] args) throws LuanException { |
263 if( ToolProvider.getSystemJavaCompiler()==null ) | 265 if( ToolProvider.getSystemJavaCompiler()==null ) |
264 throw new LuanException("java compiler not available"); | 266 throw new LuanException("java compiler not available"); |
267 Luan.args = args; | |
265 Luan luan = new Luan(); | 268 Luan luan = new Luan(); |
266 LuanFunction fn = loadClasspath(luan,"luan/cmd_line.luan"); | 269 LuanFunction fn = loadClasspath(luan,"luan/cmd_line.luan"); |
267 fn.call(luan,(Object[])args); | 270 fn.call(luan,(Object[])args); |
268 } | 271 } |
269 | 272 |