Mercurial Hosting > luan
comparison core/src/luan/impl/BinaryOpExpr.java @ 171:3dcb0f9bee82
add core component
git-svn-id: https://luan-java.googlecode.com/svn/trunk@172 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Sun, 22 Jun 2014 05:41:22 +0000 |
parents | src/luan/impl/BinaryOpExpr.java@4eaee12f6c65 |
children | 4d53e9fc1bd9 |
comparison
equal
deleted
inserted
replaced
170:7c792a328a83 | 171:3dcb0f9bee82 |
---|---|
1 package luan.impl; | |
2 | |
3 import luan.Luan; | |
4 import luan.LuanTable; | |
5 import luan.LuanFunction; | |
6 import luan.LuanException; | |
7 import luan.LuanSource; | |
8 | |
9 | |
10 abstract class BinaryOpExpr extends CodeImpl implements Expr { | |
11 final Expr op1; | |
12 final Expr op2; | |
13 | |
14 BinaryOpExpr(LuanSource.Element se,Expr op1,Expr op2) { | |
15 super(se); | |
16 this.op1 = op1; | |
17 this.op2 = op2; | |
18 } | |
19 | |
20 Object arithmetic(LuanStateImpl luan,String op,Object o1,Object o2) throws LuanException { | |
21 return luan.bit(se()).arithmetic("__mod",o1,o2); | |
22 } | |
23 | |
24 } |