string ToBinaryExpressionType(BinaryExpressionTypeCPPModel op)
        {
            if (!_binaryExpressionLookup.ContainsKey(op))
            {
                throw new Exception($"Unsupported binary operation type: {op}");
            }

            return(_binaryExpressionLookup[op]);
        }
Beispiel #2
0
 public BinaryExpressionCPPModel(BinaryExpressionTypeCPPModel Type = 0, ExpressionCPPModel Left = null, ExpressionCPPModel Right = null)
 {
     this.Type  = Type;
     this.Left  = Left ?? default(ExpressionCPPModel);
     this.Right = Right ?? default(ExpressionCPPModel);
 }