author | Christian Urban <christian dot urban at kcl dot ac dot uk> |
Tue, 26 Feb 2013 12:47:03 +0000 | |
changeset 197 | 0eef61c56891 |
parent 196 | a69607b7f186 |
child 200 | 8dde2e46c69d |
permissions | -rw-r--r-- |
193
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
1 |
|
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
2 |
The packages can be compiled with |
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
3 |
|
196
a69607b7f186
corrected README
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
193
diff
changeset
|
4 |
scalac lib.scala turing.scala abacus.scala recs.scala comp1.scala |
193
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
5 |
|
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
6 |
If you get an error, it is advisable to clean |
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
7 |
out the existing class-files |
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
8 |
|
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
9 |
rm */*.class |
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
10 |
|
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
11 |
|
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
12 |
After compilation, the examples can be run in |
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
13 |
the REPL as well as in scala. For example |
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
14 |
|
196
a69607b7f186
corrected README
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
193
diff
changeset
|
15 |
|
a69607b7f186
corrected README
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
193
diff
changeset
|
16 |
scala ex.scala |
a69607b7f186
corrected README
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
193
diff
changeset
|
17 |
|
a69607b7f186
corrected README
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
193
diff
changeset
|
18 |
or |
a69607b7f186
corrected README
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
193
diff
changeset
|
19 |
|
193
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
20 |
scala -cp $PWD ex.scala |
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
21 |
|
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
22 |
|
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
23 |
The directory can be cleaned with |
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
24 |
|
196
a69607b7f186
corrected README
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
193
diff
changeset
|
25 |
rm -rf *~ lib turing abacus comp1 recs |
193
317a2532c567
split up scala-file into separate components
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
26 |