C# Class AST.IfStmt

If Statement: if (cond) stmt; If cond is non-zero, stmt is executed. cond must be arithmetic or pointer type.
Inheritance: Stmt
Show file Open project: phisiart/C-Compiler Class Usage Examples

Public Methods

Method Description
Create ( Expr cond, Stmt stmt ) : Stmt
GetStmt ( ABT env ) : ABT.Stmt>.Tuple
IfStmt ( Expr cond, Stmt stmt ) : System

Method Details

Create() public static method

public static Create ( Expr cond, Stmt stmt ) : Stmt
cond Expr
stmt Stmt
return Stmt

GetStmt() public method

public GetStmt ( ABT env ) : ABT.Stmt>.Tuple
env ABT
return ABT.Stmt>.Tuple

IfStmt() public method

public IfStmt ( Expr cond, Stmt stmt ) : System
cond Expr
stmt Stmt
return System