templates5/bfc.scala
changeset 333 0b82e661341a
parent 285 475c39725698
equal deleted inserted replaced
332:e43ad5714b72 333:0b82e661341a
    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