scala/README
author Sebastiaan Joosten <sebastiaan.joosten@uibk.ac.at>
Wed, 19 Dec 2018 16:47:10 +0100
changeset 289 4e50ff177348
parent 270 ccec33db31d4
permissions -rw-r--r--
Cleanup in UF


The packages can be compiled with

  scalac lib.scala turing.scala abacus.scala recs2.scala comp1.scala comp2.scala

If you get an error, it is advisable to clean 
out the existing class-files

  rm */*.class


After compilation, the examples can be run in
the REPL as well as in scala. For example


  scala ex.scala

or

  scala -cp $PWD ex.scala


The directory can be cleaned with

  rm -rf *~ lib turing abacus comp1 comp2 recs




------------------------------
Abacus to Javabyte compilation

requires the jasmin assembler for Java
avilable from

  http://jasmin.sourceforge.net

Calling

  scala -cp $PWD ex_jvm.scala

generates a Prog.j intermediate file.
This will be assembled using jasmin.