templates5/bfc.scala
changeset 333 24bc76d97db2
parent 285 bd9d142d2cd8
equal deleted inserted replaced
332:703c7e42bf46 333:24bc76d97db2
    81 //def run2(pg: String, m: Mem = Map()) = ... 
    81 //def run2(pg: String, m: Mem = Map()) = ... 
    82 
    82 
    83 
    83 
    84 // testcases
    84 // testcases
    85 // time_needed(1, run2(load_bff("benchmark.bf")))
    85 // time_needed(1, run2(load_bff("benchmark.bf")))
    86 // time_needed(1, run2(load_bff("seirpinski.bf")))
    86 // time_needed(1, run2(load_bff("sierpinski.bf")))
    87 
    87 
    88 
    88 
    89 
    89 
    90 // (6) Write a function optimise which deletes "dead code" (everything
    90 // (6) Write a function optimise which deletes "dead code" (everything
    91 // that is not a bf-command) and also replaces substrings of the form
    91 // that is not a bf-command) and also replaces substrings of the form