diff src/luan/impl/LuanParser.java @ 1333:25746915a241

merge Luan and LuanState
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 12 Feb 2019 22:33:40 -0700
parents f41919741100
children e0cf0d108a77
line wrap: on
line diff
--- a/src/luan/impl/LuanParser.java	Tue Feb 12 21:50:26 2019 -0700
+++ b/src/luan/impl/LuanParser.java	Tue Feb 12 22:33:40 2019 -0700
@@ -9,7 +9,6 @@
 import java.util.ArrayList;
 import java.util.concurrent.atomic.AtomicInteger;
 import luan.Luan;
-import luan.LuanState;
 import luan.LuanTable;
 import luan.modules.PackageLuan;
 
@@ -2012,7 +2011,6 @@
 			+"import luan.LuanClosure;  "
 			+"import luan.Luan;  "
 			+"import luan.LuanFunction;  "
-			+"import luan.LuanState;  "
 			+"import luan.LuanException;  "
 			+"import luan.modules.PackageLuan;  "
 
@@ -2022,7 +2020,7 @@
 					+ init(upValueSymbols)
 				+"}  "
 
-				+"@Override public Object doCall(LuanState luan,Object[] args) throws LuanException {  "
+				+"@Override public Object doCall(Luan luan,Object[] args) throws LuanException {  "
 					+"final Pointer[] parentUpValues = upValues;  "
 					+"Object t;  "
 					+"Object[] a;  "
@@ -2042,13 +2040,13 @@
 				+"{  "
 				+ init(upValueSymbols)
 				+"}  "
-				+"@Override public Object doCall(LuanState luan,Object[] args) throws LuanException {  "
+				+"@Override public Object doCall(Luan luan,Object[] args) throws LuanException {  "
 		);
 		if( name != null ) {
 			exp.add( ""
 					+"return _" + name + "(luan,args);  "
 				+"}  "
-				+"private Object _" + name + "(LuanState luan,Object[] args) throws LuanException {  "
+				+"private Object _" + name + "(Luan luan,Object[] args) throws LuanException {  "
 			);
 		}
 		exp.add( ""