public class TreeMaker extends Object
Constructor and Description |
---|
TreeMaker(SymbolTable symbols) |
public TreeMaker(SymbolTable symbols)
public BinaryExpr binary(BinaryOpType op, Expr left, Expr right)
public UnaryExpr unary(UnaryOpType op, Expr expr)
public LiteralExpr literal(Type type, Object value)
public VariableExpr variable(String id)
public VectorCtorExpr vectorCtor(Type type, List<Expr> params)
public FieldSelectExpr fieldSelect(Expr expr, String fields)
public ArrayAccessExpr arrayAccess(Expr expr, Expr index)
public ContinueStmt continueStmt()
public BreakStmt breakStmt()
public DiscardStmt discardStmt()
public ReturnStmt returnStmt(Expr expr)
public SelectStmt selectStmt(Expr ifExpr, Stmt thenStmt, Stmt elseStmt)
public DoWhileStmt doWhileStmt(Stmt stmt, Expr expr)
public ForStmt forStmt(Stmt init, Expr cond, Expr expr, Stmt stmt, int unrollMax, int unrollCheck)
public CompoundStmt compoundStmt(List<Stmt> stmts)
public ProgramUnit programUnit(List<ExtDecl> decls)
Copyright © 2020. All rights reserved.