996
|
1 PLEASE NOTE: This program demonstrates "Threaded INTERCAL" style
|
|
2 threads, where multiple "COME FROM"s are allowed
|
|
3 corresponding to each label, and each "COME FROM"
|
|
4 proceeds as a separate thread.
|
|
5
|
|
6 Copyright (c) 2006 Claudio Calvelli, all rights reserved.
|
|
7
|
|
8 CLC-INTERCAL is copyrighted software. However, permission to use, modify,
|
|
9 and distribute it is granted provided that the conditions set out in the
|
|
10 licence agreement are met. See files README and COPYING in the distribution.
|
|
11
|
|
12 (1) DON'T GIVE UP
|
|
13
|
|
14 PLEASE COME FROM (1)
|
|
15 DO .1 <- #1
|
|
16 DO READ OUT .1 DO NOTE THAT THIS READS "I"
|
|
17 DO .1 <- .1 ¢ .1
|
|
18 DO READ OUT .1 DO NOTE THAT THIS READS "III"
|
|
19 PLEASE GIVE UP
|
|
20
|
|
21 DO COME FROM (1)
|
|
22 DO .2 <- #2
|
|
23 DO READ OUT .2 DO NOTE THAT THIS READS "II"
|
|
24 DO .2 <- .2 ¢ .2
|
|
25 DO READ OUT .2 DO NOTE THAT THIS READS "XII"
|
|
26 PLEASE GIVE UP
|
|
27
|
|
28 PLEASE NOTE: THE OUTPUT IS I, III INTERLEAVED WITH II, XII
|
|
29
|