blob: feae11ba8f5f6e17c53f4dc3049de24192794e4d (
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
|
############################################################################
#
# File: iwriter.icn
#
# Subject: Program to write Icon code to write input
#
# Author: Ralph E. Griswold
#
# Date: March 7, 1990
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# Program that reads standard input and produces Icon expressions,
# which when compiled and executed, write out the original input.
#
# This is handy for incorporating, for example, message text in
# Icon programs. Or even for writing Icon programs that write Icon
# programs that ... .
procedure main()
while write("write(",image(read()),")")
end
|