Mercurial Hosting > luan
diff core/src/luan/impl/LuanImpl.java @ 664:71f8f5075df8
compile FnDef
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 07 Apr 2016 15:11:52 -0600 |
parents | b438a47196bc |
children | 58ebfec6178b |
line wrap: on
line diff
--- a/core/src/luan/impl/LuanImpl.java Thu Apr 07 00:01:10 2016 -0600 +++ b/core/src/luan/impl/LuanImpl.java Thu Apr 07 15:11:52 2016 -0600 @@ -15,42 +15,16 @@ private LuanImpl() {} // never - private static List<Expressions> listExpressions = new ArrayList<Expressions>(); + private static List list = new ArrayList(); - static int addExpressions(Expressions exp) { - int i = listExpressions.size(); - listExpressions.add(exp); + static int addObj(Object obj) { + int i = list.size(); + list.add(obj); return i; } - public static Expressions getExpressions(int i) { - return listExpressions.get(i); - } - -/* - private static List<Stmt> listStmt = new ArrayList<Stmt>(); - - static int addStmt(Stmt stmt) { - int i = listStmt.size(); - listStmt.add(stmt); - return i; - } - - public static Stmt getStmt(int i) { - return listStmt.get(i); - } -*/ - - private static List<Settable> listSettable = new ArrayList<Settable>(); - - static int addSettable(Settable settable) { - int i = listSettable.size(); - listSettable.add(settable); - return i; - } - - public static Settable getSettable(int i) { - return listSettable.get(i); + public static Object getObj(int i) { + return list.get(i); }