Mercurial Hosting > luan
diff src/luan/interp/WhileStmt.java @ 48:64ecb7a3aad7
rename Lua to Luan
git-svn-id: https://luan-java.googlecode.com/svn/trunk@49 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 28 Dec 2012 03:29:12 +0000 |
parents | 5cf15507d77e |
children | 8ede219cd111 |
line wrap: on
line diff
--- a/src/luan/interp/WhileStmt.java Thu Dec 27 04:36:44 2012 +0000 +++ b/src/luan/interp/WhileStmt.java Fri Dec 28 03:29:12 2012 +0000 @@ -1,7 +1,7 @@ package luan.interp; -import luan.Lua; -import luan.LuaException; +import luan.Luan; +import luan.LuanException; final class WhileStmt implements Stmt { @@ -13,9 +13,9 @@ this.doStmt = doStmt; } - @Override public void eval(LuaStateImpl lua) throws LuaException { + @Override public void eval(LuanStateImpl lua) throws LuanException { try { - while( Lua.toBoolean( cnd.eval(lua) ) ) { + while( Luan.toBoolean( cnd.eval(lua) ) ) { doStmt.eval(lua); } } catch(BreakException e) {}