progs/bf/bfi.sc
changeset 825 fb9f63a22114
parent 743 f063a6cd5d91
equal deleted inserted replaced
824:fb5462a350b1 825:fb9f63a22114
    72 }
    72 }
    73 
    73 
    74 // Running Testcases
    74 // Running Testcases
    75 //===================
    75 //===================
    76 
    76 
    77 @doc(" the argument should be a BF program ")
    77 //@doc(" the argument should be a BF program ")
    78 @main
    78 @main
    79 def main(fname: String) = {
    79 def main(fname: String) = {
    80   val bf_str = os.read(os.pwd / fname)
    80   val bf_str = os.read(os.pwd / fname)
    81   println(s"${time_needed(1, run(bf_str))} secs")
    81   println(s"${time_needed(1, run(bf_str))} secs")
    82 }  
    82 }