Skip to content
Snippets Groups Projects
Select Git revision
  • efe3a934b7eae0c77d603c0973055a4947ae6004
  • main default protected
  • variant
3 results

FireFighter.class

Blame
  • Forked from COUETOUX Basile / FirefighterStarter
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    C3aInstDiv.java 780 B
    package c3a;
    
    public class C3aInstDiv extends C3aInst{
        public C3aOperand op1;    // opérande 1 (ou null)
        public C3aOperand op2;    // opérande 2 (ou null)
        public C3aOperand result; // résultat ou destination du saut (ou NULL)
    
        public C3aInstDiv(C3aOperand op1, C3aOperand op2, C3aOperand result, String comment){
    	this.op1 = op1;
    	this.op2 = op2;
    	this.result = result;
    	this.comment = comment;
        }
    
        public String toString(){
    	if(this.label != null)
    	    return this.label + "\t" + this.result + " = " + this.op1 + " / " + this.op2 + this.comment;
    	else
    	    return              "\t" + this.result + " = " + this.op1 + " / " + this.op2 + this.comment;
        }
    
        public <T> T accept(C3aVisitor <T> visitor) {
            return visitor.visit(this);
        }
    
    }