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