# HG changeset patch # User Christian Urban # Date 1642983242 0 # Node ID 739039774ceeb89d0df4171c9fd39a1675a4dabd # Parent 81ee93b8725839542e00bc635fcf7500a2409637 ivy import not needed diff -r 81ee93b87258 -r 739039774cee handouts/amm-ho.pdf Binary file handouts/amm-ho.pdf has changed diff -r 81ee93b87258 -r 739039774cee handouts/amm-ho.tex --- a/handouts/amm-ho.tex Mon Jan 24 00:00:33 2022 +0000 +++ b/handouts/amm-ho.tex Mon Jan 24 00:14:02 2022 +0000 @@ -67,7 +67,6 @@ Ammonite can be achieved with \begin{lstlisting}[numbers=none,language=Scala] -scala> import $ivy.`com.lihaoyi::os-lib:0.8.0` scala> import os._ scala> read(pwd / "file.name") diff -r 81ee93b87258 -r 739039774cee progs/fun/fun.sc --- a/progs/fun/fun.sc Mon Jan 24 00:00:33 2022 +0000 +++ b/progs/fun/fun.sc Mon Jan 24 00:14:02 2022 +0000 @@ -170,7 +170,6 @@ // import ammonite.ops._ // post 2.5.0 ammonite -import $ivy.`com.lihaoyi::os-lib:0.8.0` import os._ def compile_to_file(prog: List[Decl], class_name: String) : Unit = diff -r 81ee93b87258 -r 739039774cee progs/fun/fun_llvm.sc --- a/progs/fun/fun_llvm.sc Mon Jan 24 00:00:33 2022 +0000 +++ b/progs/fun/fun_llvm.sc Mon Jan 24 00:14:02 2022 +0000 @@ -268,7 +268,7 @@ // import ammonite.ops._ // post 2.5.0 ammonite -import $ivy.`com.lihaoyi::os-lib:0.8.0` +// import os._ @main diff -r 81ee93b87258 -r 739039774cee progs/fun/fun_parser.sc --- a/progs/fun/fun_parser.sc Mon Jan 24 00:00:33 2022 +0000 +++ b/progs/fun/fun_parser.sc Mon Jan 24 00:14:02 2022 +0000 @@ -162,7 +162,7 @@ // import ammonite.ops._ // post 2.5.0 ammonite -import $ivy.`com.lihaoyi::os-lib:0.8.0` +// import os._ def parse_tks(tks: List[Token]) : List[Decl] = Prog.parse_single(tks) diff -r 81ee93b87258 -r 739039774cee progs/fun/fun_tokens.sc --- a/progs/fun/fun_tokens.sc Mon Jan 24 00:00:33 2022 +0000 +++ b/progs/fun/fun_tokens.sc Mon Jan 24 00:14:02 2022 +0000 @@ -253,7 +253,7 @@ // import ammonite.ops._ // post 2.5.0 ammonite -import $ivy.`com.lihaoyi::os-lib:0.8.0` +// import os._ //@doc("Tokenising a file.") @main diff -r 81ee93b87258 -r 739039774cee progs/fun/funt.sc --- a/progs/fun/funt.sc Mon Jan 24 00:00:33 2022 +0000 +++ b/progs/fun/funt.sc Mon Jan 24 00:14:02 2022 +0000 @@ -165,7 +165,7 @@ // import ammonite.ops._ // post 2.5.0 ammonite -import $ivy.`com.lihaoyi::os-lib:0.8.0` +// import os._ def compile_to_file(prog: List[Decl], class_name: String) : Unit = write.over(pwd / s"$class_name.j", compile(prog, class_name)) diff -r 81ee93b87258 -r 739039774cee progs/while-arrays/compile_arrays.sc --- a/progs/while-arrays/compile_arrays.sc Mon Jan 24 00:00:33 2022 +0000 +++ b/progs/while-arrays/compile_arrays.sc Mon Jan 24 00:14:02 2022 +0000 @@ -219,7 +219,6 @@ // import ammonite.ops._ // post 2.5.0 ammonite -import $ivy.`com.lihaoyi::os-lib:0.8.0` import os._ diff -r 81ee93b87258 -r 739039774cee progs/while-arrays/compile_arrays2.sc --- a/progs/while-arrays/compile_arrays2.sc Mon Jan 24 00:00:33 2022 +0000 +++ b/progs/while-arrays/compile_arrays2.sc Mon Jan 24 00:14:02 2022 +0000 @@ -236,7 +236,6 @@ // import ammonite.ops._ // post 2.5.0 ammonite -import $ivy.`com.lihaoyi::os-lib:0.8.0` import os._ diff -r 81ee93b87258 -r 739039774cee progs/while-arrays/compile_bfc.sc --- a/progs/while-arrays/compile_bfc.sc Mon Jan 24 00:00:33 2022 +0000 +++ b/progs/while-arrays/compile_bfc.sc Mon Jan 24 00:14:02 2022 +0000 @@ -68,7 +68,6 @@ // import ammonite.ops._ // post 2.5.0 ammonite -import $ivy.`com.lihaoyi::os-lib:0.8.0` import os._