C# Class AST.Add

Addition There are two kinds of addition: 1. both operands are of arithmetic Type 2. one operand is a pointer, and the other is an integral
Inheritance: BinaryArithmeticOp
Show file Open project: phisiart/C-Compiler Class Usage Examples

Public Methods

Method Description
ConstructExpr ( ABT left, ABT right, ABT type ) : ABT.Expr
Create ( Expr left, Expr right ) : Expr
GetExpr ( ABT env ) : ABT.Expr
GetPointerAddition ( ABT ptr, ABT offset, System.Boolean order = true ) : ABT.Expr
OperateDouble ( Double left, Double right ) : Double
OperateFloat ( System.Single left, System.Single right ) : System.Single
OperateLong ( Int32 left, Int32 right ) : Int32
OperateULong ( UInt32 left, UInt32 right ) : UInt32

Private Methods

Method Description
Add ( Expr left, Expr right ) : System

Method Details

ConstructExpr() public method

public ConstructExpr ( ABT left, ABT right, ABT type ) : ABT.Expr
left ABT
right ABT
type ABT
return ABT.Expr

Create() public static method

public static Create ( Expr left, Expr right ) : Expr
left Expr
right Expr
return Expr

GetExpr() public method

public GetExpr ( ABT env ) : ABT.Expr
env ABT
return ABT.Expr

GetPointerAddition() public method

public GetPointerAddition ( ABT ptr, ABT offset, System.Boolean order = true ) : ABT.Expr
ptr ABT
offset ABT
order System.Boolean
return ABT.Expr

OperateDouble() public method

public OperateDouble ( Double left, Double right ) : Double
left Double
right Double
return Double

OperateFloat() public method

public OperateFloat ( System.Single left, System.Single right ) : System.Single
left System.Single
right System.Single
return System.Single

OperateLong() public method

public OperateLong ( Int32 left, Int32 right ) : Int32
left System.Int32
right System.Int32
return System.Int32

OperateULong() public method

public OperateULong ( UInt32 left, UInt32 right ) : UInt32
left System.UInt32
right System.UInt32
return System.UInt32