comparison src/luan/impl/LuanParser.java @ 785:d69d3c51c44e

more work on incremental cloning
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 01 Sep 2016 21:32:28 -0600
parents 1a68fc55a80c
children 894786a03d22
comparison
equal deleted inserted replaced
784:6a7c6879158d 785:d69d3c51c44e
1965 stmt.addNewLines(); 1965 stmt.addNewLines();
1966 if( !stmt.hasReturn ) 1966 if( !stmt.hasReturn )
1967 stmt.add( "return LuanFunction.NOTHING; " ); 1967 stmt.add( "return LuanFunction.NOTHING; " );
1968 Expr exp = new Expr(Val.SINGLE,false); 1968 Expr exp = new Expr(Val.SINGLE,false);
1969 exp.add( "" 1969 exp.add( ""
1970 +"new Closure("+upValueSymbols.size()+",java) { " 1970 +"new Closure("+upValueSymbols.size()+",ljava) { "
1971 +"{ " 1971 +"{ "
1972 + init(upValueSymbols) 1972 + init(upValueSymbols)
1973 +"} " 1973 +"} "
1974 +"@Override public Object doCall(LuanState luan,Object[] args) throws LuanException { " 1974 +"@Override public Object doCall(LuanState luan,Object[] args) throws LuanException { "
1975 ); 1975 );