예제 #1
0
 public abstract void visit(MultiplicationExp n);
 public override void visit(MultiplicationExp n)
 {
     n.e1.accept(this);
     n.e2.accept(this);
     Add(new Move(stack.Pop(), regRDX));
     Add(new Move(stack.Pop(), regRAX));
     Add(new Mult(regRDX, regRAX));
     stack.Push(regRAX);
 }
예제 #3
0
 public virtual void visit(MultiplicationExp n)
 {
     // Do nothing; leave the implementation to the main class
 }