comparison src/luan/modules/BasicLuan.java @ 1434:56fb5cd8228d

cache compiled code in temp files
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 29 Dec 2019 15:25:07 -0700
parents 9ab267b9427c
children d9a5405a3102
comparison
equal deleted inserted replaced
1433:5f038be65271 1434:56fb5cd8228d
21 21
22 public static String type(Object obj) { 22 public static String type(Object obj) {
23 return Luan.type(obj); 23 return Luan.type(obj);
24 } 24 }
25 25
26 public static LuanFunction load(Luan luan,String text,String sourceName,LuanTable env) 26 public static LuanFunction load(Luan luan,String text,String sourceName,boolean persist,LuanTable env)
27 throws LuanException 27 throws LuanException
28 { 28 {
29 Utils.checkNotNull(text); 29 Utils.checkNotNull(text);
30 Utils.checkNotNull(sourceName,1); 30 Utils.checkNotNull(sourceName,1);
31 return luan.load(text,sourceName,env); 31 return luan.load(text,sourceName,persist,env);
32 } 32 }
33 /* 33 /*
34 public static LuanFunction load_file(Luan luan,String fileName) throws LuanException { 34 public static LuanFunction load_file(Luan luan,String fileName) throws LuanException {
35 if( fileName == null ) { 35 if( fileName == null ) {
36 fileName = "stdin:"; 36 fileName = "stdin:";