blob: 01fdcacbc4fd03439d528402370c0ad983d1b30b (
plain)
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
|
############################################################################
#
# File: procwrap.icn
#
# Subject: Program to produce Icon procedure wrappers
#
# Author: Ralph E. Griswold
#
# Date: September 29, 1994
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# This little program takes procedure names from standard input and
# writes minimal procedure declarations for them. For example, the
# input line
#
# wrapper
#
# produces
#
# procedure wrapper()
# end
#
# This program is useful when you have a lot of procedures to write.
#
############################################################################
procedure main()
while write("procedure ", read(), "()\nend\n")
end
|