Example #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);
 }
 public virtual void visit(MultiplicationExp n)
 {
     // Do nothing; leave the implementation to the main class
 }