C# 클래스 ABT.BinaryOpSupportingArithmeticOperands

파일 보기 프로젝트 열기: phisiart/C-Compiler

공개 메소드들

메소드 설명
CGenArithmetic ( CGenState state ) : void

1. %st(0) = left, %st(1) = right, stack unchanged 2. Operate{Float, Double}

CGenDouble ( CGenState state ) : void

1. %st(0) = left, %st(1) = right, stack unchanged 2. OperateDouble

CGenFloat ( CGenState state ) : void

1. %st(0) = left, %st(1) = right, stack unchanged 2. OperateDouble

OperateDouble ( CGenState state ) : void

Before: %st(0) = left, %st(1) = right, stack unchanged. After: 'left op right' stored in the correct register.

OperateFloat ( CGenState state ) : void

Before: %st(0) = left, %st(1) = right, stack unchanged. After: 'left op right' stored in the correct register.

보호된 메소드들

메소드 설명
BinaryOpSupportingArithmeticOperands ( Expr left, Expr right ) : System

메소드 상세

BinaryOpSupportingArithmeticOperands() 보호된 메소드

protected BinaryOpSupportingArithmeticOperands ( Expr left, Expr right ) : System
left Expr
right Expr
리턴 System

CGenArithmetic() 공개 메소드

1. %st(0) = left, %st(1) = right, stack unchanged 2. Operate{Float, Double}
public CGenArithmetic ( CGenState state ) : void
state CodeGeneration.CGenState
리턴 void

CGenDouble() 공개 메소드

1. %st(0) = left, %st(1) = right, stack unchanged 2. OperateDouble
public CGenDouble ( CGenState state ) : void
state CodeGeneration.CGenState
리턴 void

CGenFloat() 공개 메소드

1. %st(0) = left, %st(1) = right, stack unchanged 2. OperateDouble
public CGenFloat ( CGenState state ) : void
state CodeGeneration.CGenState
리턴 void

OperateDouble() 공개 추상적인 메소드

Before: %st(0) = left, %st(1) = right, stack unchanged. After: 'left op right' stored in the correct register.
public abstract OperateDouble ( CGenState state ) : void
state CodeGeneration.CGenState
리턴 void

OperateFloat() 공개 추상적인 메소드

Before: %st(0) = left, %st(1) = right, stack unchanged. After: 'left op right' stored in the correct register.
public abstract OperateFloat ( CGenState state ) : void
state CodeGeneration.CGenState
리턴 void