progs/while-arrays/compile_arrays.sc
changeset 958 fddf099a82f8
parent 943 5365ef60707e
child 974 0cb4bf2469d1
equal deleted inserted replaced
957:34b3aeb65fbe 958:fddf099a82f8
     5 //
     5 //
     6 // Call with 
     6 // Call with 
     7 //
     7 //
     8 // amm compile_arrays.sc
     8 // amm compile_arrays.sc
     9   
     9   
       
    10 //> using toolkit latest
       
    11 
    10 
    12 
    11 // the abstract syntax trees for WHILE
    13 // the abstract syntax trees for WHILE
    12 
    14 
    13 abstract class Stmt
    15 abstract class Stmt
    14 abstract class AExp
    16 abstract class AExp
   232   println(s"done.")
   234   println(s"done.")
   233 }
   235 }
   234 
   236 
   235 
   237 
   236    
   238    
   237 @main def main() = {
   239 //@main def main() = {
   238   compile_and_run(array_test, "arr")
   240 //  compile_and_run(array_test, "arr")
   239 }
   241 //}
   240 
   242 
   241 
   243 
   242 
   244 
   243 
   245 
   244 
   246