author | Christian Urban <christian dot urban at kcl dot ac dot uk> |
Thu, 14 Mar 2013 18:46:34 +0000 | |
changeset 225 | 0974c59e7029 |
parent 205 | c7975ab7c52e |
child 226 | df455e0a9f98 |
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 |
|
205
c7975ab7c52e
corrected scala compiler from recs to abacus
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
200
diff
changeset
|
4 |
scalac lib.scala turing.scala abacus.scala recs.scala comp1.scala comp2.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 |
|
200
8dde2e46c69d
added all recursive functions needed for the UF
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
196
diff
changeset
|
25 |
rm -rf *~ lib turing abacus comp1 comp2 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 |
|
225
0974c59e7029
added an abacus to javabyte code compiler
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
205
diff
changeset
|
27 |
|
0974c59e7029
added an abacus to javabyte code compiler
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
205
diff
changeset
|
28 |
|
0974c59e7029
added an abacus to javabyte code compiler
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
205
diff
changeset
|
29 |
|
0974c59e7029
added an abacus to javabyte code compiler
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
205
diff
changeset
|
30 |
------------------------------ |
0974c59e7029
added an abacus to javabyte code compiler
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
205
diff
changeset
|
31 |
Abacus to Javabyte compilation |
0974c59e7029
added an abacus to javabyte code compiler
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
205
diff
changeset
|
32 |
|
0974c59e7029
added an abacus to javabyte code compiler
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
205
diff
changeset
|
33 |
requires the jasmin assembler for Java |
0974c59e7029
added an abacus to javabyte code compiler
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
205
diff
changeset
|
34 |
avilable from |
0974c59e7029
added an abacus to javabyte code compiler
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
205
diff
changeset
|
35 |
|
0974c59e7029
added an abacus to javabyte code compiler
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
205
diff
changeset
|
36 |
http://jasmin.sourceforge.net |