Esempio n. 1
0
 public abstract void visit(MinusExp n);
 //      EXPRESSIONS
 
 public override void visit(MinusExp n)
 {
     n.e1.accept(this);
     n.e2.accept(this);
     Add(new Move(stack.Pop(), regRDX));
     Add(new Move(stack.Pop(), regRAX));
     Add(new Sub(regRDX, regRAX));
     stack.Push(regRAX);
 }
 public virtual void visit(MinusExp n)
 {
     // Do nothing; leave the implementation to the main class
 }