changeset 822 | 6b06aeb192ea |
parent 789 | f0696713177b |
child 847 | da2320360f12 |
821:f914b9476dc7 | 822:6b06aeb192ea |
---|---|
249 else { println (s"Tokenise Error") ; sys.exit(-1) } |
249 else { println (s"Tokenise Error") ; sys.exit(-1) } |
250 } |
250 } |
251 |
251 |
252 import ammonite.ops._ |
252 import ammonite.ops._ |
253 |
253 |
254 @doc("Tokenising a file.") |
254 //@doc("Tokenising a file.") |
255 @main |
255 @main |
256 def main(fname: String) = { |
256 def main(fname: String) = { |
257 println(tokenise(os.read(os.pwd / fname))) |
257 println(tokenise(os.read(os.pwd / fname))) |
258 } |
258 } |