-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
50 lines (30 loc) · 1.42 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
The examples directory contains a few small and not so small
example programs which illustrate various aspects of the Cool
programming language.
arith.cl Tests various aspects of arithmetic in Cool.
atoi.cl An implementation of the C function by the
same name. It converts a String into an Int.
atoi_test.cl An example program using atoi.cl. Since you
will most likely use atoi.cl in the first
assignment, you should study this example.
list.cl A very simple program showing how to create a
list data type for integers. It illustrates
inheritance and dynamic dispatch.
book_list.cl Illustrates inheritance and in particular the
mechanism of STATIC DISPATCH and the CASE
statement.
cells.cl Models a one-dimensional cellular automaton.
cool.cl An short and obscure program.
io.cl Shows how to use the IO class. (input/output)
hairyscary.cl Exercises many of the obscure features of the
language in obscure ways.
hello_world.cl The classic first program.
primes.cl An unusual prime number generator.
graph.cl A program reading descriptions of weighted-
directed graphs from stdin in text format.
g1.graph A sample input to graph.cl
palindrome.cl Recognizes palindromes.
complex.cl Checks the = operator and cummulative effects of
method calls via a complex number object.
life.cl The classic Game of Life
sort_list.cl A more complex example sorting lists of integers.