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
Afficher le fichier Open project: phisiart/C-Compiler Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Add ( Expr left, Expr right ) : System

Method Details

ConstructExpr() public méthode

public ConstructExpr ( ABT left, ABT right, ABT type ) : ABT.Expr
left ABT
right ABT
type ABT
Résultat ABT.Expr

Create() public static méthode

public static Create ( Expr left, Expr right ) : Expr
left Expr
right Expr
Résultat Expr

GetExpr() public méthode

public GetExpr ( ABT env ) : ABT.Expr
env ABT
Résultat ABT.Expr

GetPointerAddition() public méthode

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

OperateDouble() public méthode

public OperateDouble ( Double left, Double right ) : Double
left Double
right Double
Résultat Double

OperateFloat() public méthode

public OperateFloat ( System.Single left, System.Single right ) : System.Single
left System.Single
right System.Single
Résultat System.Single

OperateLong() public méthode

public OperateLong ( Int32 left, Int32 right ) : Int32
left System.Int32
right System.Int32
Résultat System.Int32

OperateULong() public méthode

public OperateULong ( UInt32 left, UInt32 right ) : UInt32
left System.UInt32
right System.UInt32
Résultat System.UInt32