progs/fun/fun_tokens.sc
changeset 870 739039774cee
parent 869 81ee93b87258
child 955 47acfd7f9096
equal deleted inserted replaced
869:81ee93b87258 870:739039774cee
   251 
   251 
   252 // pre-2.5.0 ammonite 
   252 // pre-2.5.0 ammonite 
   253 // import ammonite.ops._
   253 // import ammonite.ops._
   254 
   254 
   255 // post 2.5.0 ammonite
   255 // post 2.5.0 ammonite
   256 import $ivy.`com.lihaoyi::os-lib:0.8.0` 
   256 // import os._
   257 
   257 
   258 //@doc("Tokenising a file.")
   258 //@doc("Tokenising a file.")
   259 @main
   259 @main
   260 def main(fname: String) = {
   260 def main(fname: String) = {
   261   println(tokenise(os.read(os.pwd / fname)))
   261   println(tokenise(os.read(os.pwd / fname)))