Debian Codegraph @

pit/CATALOG

raw
1 This is the directory of programs written in INTERCAL. Most of these
2 are no doubt full of bugs. Don't complain, you're lucky if anything
3 written in INTERCAL works at all.
4
5 Some of these programs are explicitly licenced under the GNU GPL, just
6 like the C-INTERCAL compiler is; therefore, remember to include
7 COPYING.txt from the main installation directory if you want to
8 redistribute these separately from that compiler.
9
10 The subdirectory lib contains code fragments that are not complete
11 programs; the programs in explib are expansion libraries written in C,
12 which serve as examples of the C-INTERCAL to C interface as well as
13 potentially being useful.
14
15 Programs marked with + have associated .chk files (and, if they take
16 input, corresponding .tst files) and are part of the regression-test
17 suite.
18
19 Contents:
20
21 from original manual:
22 sample.i Returns absolute value of a 16-bit 2s-complement number
23 lib/syslib-orig.i Standard library (original buggy version)
24
25 by Jon Blow <[email protected]>
26 tests/sink.i + Simple test program, should sink into the Black Lagoon
27 random.i Random number program
28 lib/plus.i Increment .1
29
30 by Hans Olsson <[email protected]>
31 lib/1910.doc Listing of a random number routine. Hans said he wrote
32 this because he couldn't find (1910) in the system
33 library, but it's there in our lib/syslib.i. We keep
34 this around as an example. (What? Throw away INTERCAL
35 code? Perish the thought!)
36
37 by Louis Howell <[email protected]>
38 life.i Conway's game of Life, standard INTERCAL version
39 life2.i This version uses COME FROM and character output
40 blinkers
41 t_tet
42 glider
43 gun Input files for both Life programs
44 bubble.i + Bubble sort. List of numbers to be sorted must
45 be preceded with the length of the list.
46 icat.i + Sends input to output
47 lib/lib2.i New library routines: decrement, decrement and branch
48 on 0, add bit, 16-bit division with remainder,
49 exponentiation
50 pi.i + Calculate pi to a specified number of digits
51 primes.i Find prime numbers
52 pow.i + Prints a list of nth powers using old exponentiation
53 routine. Expect this to fail with overflow.
54 lib/syslib.i Corrected version of system library
55 iching1.i Generates I Ching hexagrams
56 iching2.i This version uses a lookup table to find the sequence
57 number
58 iching.doc Description of the two I Ching programs
59 change.i Count up different ways to make change
60 change.doc Description of change.i
61 tests/testsplat.i + Tests behavior of comments and things resembling
62 comments.
63
64 by Matt Dimeo <[email protected]>
65 beer.i + Print out lyrics to "99 Bottles of Beer On The Wall"
66
67 by Stinglai Ka'abi <[email protected]>:
68 random2.i Another random-number generator
69
70 by Jacob Mandelson <[email protected]>
71 rot13.i + Prints ROT-13 of its input
72
73 by Jan-Pieter Cornet <[email protected]>
74 hail_mary.3i + Print 1,000,000 Hail Marys
75 tests/count.3i + Count from 1 to 10 in TriINTERCAL
76 tests/iogerunds.i Demonstrate gerund abstention
77
78 by Clemens Meier <[email protected]>
79 rot13b.i + Another ROT-13 program
80
81 By Brian Raiter <[email protected]>
82 lib/numio.i I/O routines
83 lib/numio.doc Description of the I/O routines
84 lib/syslib3.3i
85 lib/syslib4.4i
86 lib/syslib5.5i
87 lib/syslib6.6i Translations of the standard library to
88 lib/syslib7.7i C-INTERCAL's other bases.
89 lib/syslib3-7.doc Documentation for same
90 tests/hello.i + The traditional hello world program
91 ins.i Intersections & Splats, a Mastermind-style game
92 ins.doc Documentation for I&S
93 yapp.i + Prints an INTERCAL program that prints
94 yapp.doc Description of yapp.i
95 quine.i + Prints itself
96 lib/floatlib.i Floating-point routines
97 lib/floatlib.doc Documentation for the floating-point routines
98 flonck.i + An RPN calculator
99 flonck.doc Documentation for flonck.i (requires floatlib)
100 fft.i + Fast Fourier Transform (requires syslib and floatlib)
101 fft.doc Description of fft.i
102
103 by Donald Knuth
104 tpk.i + Don Knuth's implementation of the TPK algorithm
105 tpk.doc Don's note about the algorithm
106
107 by Oerjan Johansen
108 unlambda.i + An Unlambda interpreter in INTERCAL
109 unlambda.doc Better-commented version of the above
110
111 by Jeffrey Lee
112 interfunge.i + A Befunge-93 interpreter in INTERCAL
113
114 by Brendan Gregg
115 guess.i Guessing game implementation in INTERCAL
116
117 The subdirectory tests contains some programs written only to test the
118 compiler.
119
120 by David Moews
121 tests/test1.i + Prints DO THIS TEST HAS BEEN SUCCESSFULLY COMPLETED
122 tests/test2.i + Reads in two numbers and reports their product
123
124 by Alex Smith
125 tests/ais1.i + Reads in numbers terminated with zero and
126 writes them back out, testing COME FROM/NEXT
127 interaction.
128 tests/ais2.i + A demonstration of computed ABSTAIN's power.
129 Computes the Fibinacci sequence; in the innput file,
130 ONE means compute the nextvterm and ZERO means stop.
131 tests/compucome.i A program to test computed COME FROM
132 tests/onceagain.i + A single-threaded program testing ONCE and AGAIN.
133 Output just tracks the program control flow.
134 tests/arrtest.i A program to test some changes I made to the grammar.
135 No output expected as it's just a parser test.
136 tests/arrtest.doc The history behind those changes
137 tests/permute.i + A permutation-printing program to test backtracking
138 tests/permute.doc Information about the permutation-printer
139 tests/whileadd.i + Adds two input numbers with a single WHILE statement
140 tests/ignorret.i + Testing interactions of IGNORE and RETRIEVE
141 tests/ignorearray.i + Checking that IGNORE works correctly on arrays
142 tests/ignorret.doc What ignorret does on several compilers
143 tests/normaldist.i Checking the standard deviation of (1910)
144 tests/testcreate.i + A test for the CREATE statement
145 tests/iffit1.i The INTERCAL side of the INTERCAL/Funge-98 test
146 tests/iffit2.b98 The Funge side of the INTERCAL/Funge-98 test
147 tests/iffit.doc Documentation for the INTERCAL/Funge-98 test
148 explib/syslibc.c The INTERCAL base 2 syslib, optimised version in C
149 explib/compunex.c An example flow-control routine (computed NEXT)
150 explib/ecto_b98.c A library that links INTERCAL and Funge-98 code
151 sort.i + An insertion-sort program testing computed ABSTAIN
152 continuation.i A continuation library and example program
153 continuation.doc About usage and internals of the continuation library
154
155 by Malcom Ryan
156 tests/testonce.i + A single-threaded program that tests all permutations
157 of the ONCE modifier; the output is simply to verify
158 that the program flow follows the sequence expected.
159 pass.i + A multithread program illustrating communications
160 between threads. Simply reads in a list of
161 numbers (terminated by ZERO) and writes them out.
162
163 The programs test16bit.i, testarray.i, testcf.i, testlib2.i, limits.*,
164 testops*i, were all written by Louis Howell. Of these, testcf.i might
165 be considered an interesting puzzle---try to figure out what it's
166 doing. The others are pretty boring, but are included as diagnostics
167 and because so few other example programs exist. Not all of these
168 even produce interesting diagnostic output; it may be necessary to
169 look at the degenerated C code to determine if the compiler is doing
170 the right thing.
171
172 End of file CATALOG
173 -------------------