Mercurial Hosting > luan
comparison src/luan/interp/NotExpr.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 | e3624b7cd603 |
children | 8ede219cd111 |
comparison
equal
deleted
inserted
replaced
47:659c7139e903 | 48:64ecb7a3aad7 |
---|---|
1 package luan.interp; | 1 package luan.interp; |
2 | 2 |
3 import luan.Lua; | 3 import luan.Luan; |
4 import luan.LuaException; | 4 import luan.LuanException; |
5 import luan.LuaSource; | 5 import luan.LuanSource; |
6 | 6 |
7 | 7 |
8 final class NotExpr extends UnaryOpExpr { | 8 final class NotExpr extends UnaryOpExpr { |
9 | 9 |
10 NotExpr(LuaSource.Element se,Expr op) { | 10 NotExpr(LuanSource.Element se,Expr op) { |
11 super(se,op); | 11 super(se,op); |
12 } | 12 } |
13 | 13 |
14 @Override public Object eval(LuaStateImpl lua) throws LuaException { | 14 @Override public Object eval(LuanStateImpl lua) throws LuanException { |
15 return !Lua.toBoolean(op.eval(lua)); | 15 return !Luan.toBoolean(op.eval(lua)); |
16 } | 16 } |
17 } | 17 } |