Ejemplo n.º 1
0
        public override void Compile(Emitter.Emitter emitter)
        {
            var leftType = Left.GetExpressionType(emitter);
              var rightType = Right.GetExpressionType(emitter);
              if (leftType != "int" || rightType != "int")
            Error(String.Format(Resources.errOperatorTypesMismatch, "|", leftType, rightType));

              Left.Compile(emitter);
              Right.Compile(emitter);
              emitter.EmitOr();
        }