Skip to content
Snippets Groups Projects
Select Git revision
  • 9aedd869962f660578d406441995bfe99a8221c5
  • main default protected
2 results

C3aInstCall.java

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