Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Experiments / Attic / Rook / Castle.Rook.Compiler / AST / Exp / BinaryExpression.cs
blob8ca0d9d7cc22dd1b025bdb0411f89698ee5cbf39
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.Rook.Compiler.AST
17 using System;
19 public enum BinaryOp
21 Undefined,
22 Equal,
23 LessThan,
24 GreaterThan,
25 GreaterEqual,
26 LessEqual,
27 NotEqual,
28 IsA,
29 Plus,
30 Minus,
31 And,
32 And2,
33 Or,
34 Or2,
35 Xor,
36 Mult,
37 Div,
38 Mod,
41 public class BinaryExpression : Expression
43 private IExpression left;
44 private IExpression right;
45 private BinaryOp op;
47 public BinaryExpression(IExpression left, IExpression right, BinaryOp op)
49 this.left = left;
50 this.right = right;
51 this.op = op;
54 public IExpression Left
56 get { return left; }
57 set { left = value; }
60 public IExpression Right
62 get { return right; }
63 set { right = value; }
66 public BinaryOp Op
68 get { return op; }
69 set { op = value; }