Package translate

Source Code of translate.Ex

package translate;

import temp.Label;
import IRTree2.CJUMP;
import IRTree2.CONST;
import IRTree2.Stm;

public class Ex extends Exp
{
    IRTree2.Exp exp;
   
    Ex(IRTree2.Exp e)
    {
        super();       
        exp = e;
    }
   
     public   IRTree2.Exp unEx()
    {   
        return exp;
    }

   
     public  Stm unNx()
    {
        return new IRTree2.ExpStm(exp);
    }

   
     public Stm unCx(Label t, Label f)
    {
        return new CJUMP(CJUMP.EQ, exp, new CONST(0), f, t);
    }


}
TOP

Related Classes of translate.Ex

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.