Пример #1
0
 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);
 }
Пример #3
0
 public virtual void visit(PlusExp n)
 {
     // Do nothing; leave the implementation to the main class
 }