progs/compile.scala
changeset 625 6709fa87410b
parent 624 8d0af38389bc
child 668 9ce78065f68d
--- a/progs/compile.scala	Sun Jul 28 14:24:46 2019 +0100
+++ b/progs/compile.scala	Sun Jul 28 16:15:03 2019 +0100
@@ -257,7 +257,7 @@
        Assign("minus2",Num(1)),         //  minus2 := 1;
        Assign("temp",Num(0)),           //  temp := 0;
        While(Bop("<",Num(0),Var("n")),  //  while n > 0 do  {
-          List(Assign("temp",Var("minus2")),    //  temp := minus2;
+          List(Assign("temp",Var("minus2")), //  temp := minus2;
                Assign("minus2",Aop("+",Var("minus1"),Var("minus2"))), 
                                         //  minus2 := minus1 + minus2;
                Assign("minus1",Var("temp")), //  minus1 := temp;