comparison src/luan/interp/BinaryOpExpr.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.LuaTable; 4 import luan.LuanTable;
5 import luan.LuaFunction; 5 import luan.LuanFunction;
6 import luan.LuaException; 6 import luan.LuanException;
7 import luan.LuaSource; 7 import luan.LuanSource;
8 8
9 9
10 abstract class BinaryOpExpr extends CodeImpl implements Expr { 10 abstract class BinaryOpExpr extends CodeImpl implements Expr {
11 final Expr op1; 11 final Expr op1;
12 final Expr op2; 12 final Expr op2;
13 13
14 BinaryOpExpr(LuaSource.Element se,Expr op1,Expr op2) { 14 BinaryOpExpr(LuanSource.Element se,Expr op1,Expr op2) {
15 super(se); 15 super(se);
16 this.op1 = op1; 16 this.op1 = op1;
17 this.op2 = op2; 17 this.op2 = op2;
18 } 18 }
19 19
20 Object arithmetic(LuaStateImpl lua,String op,Object o1,Object o2) throws LuaException { 20 Object arithmetic(LuanStateImpl lua,String op,Object o1,Object o2) throws LuanException {
21 return lua.arithmetic(se(),"__mod",o1,o2); 21 return lua.arithmetic(se(),"__mod",o1,o2);
22 } 22 }
23 23
24 } 24 }