summaryrefslogtreecommitdiff
path: root/ipl/progs/gener.icn
blob: 9c0b7502c086fd55e17e5d9925286df303cc52f2 (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
37
38
39
############################################################################
#
#	File:     gener.icn
#
#	Subject:  Program to generate sequence from Icon expression
#
#	Author:   Ralph E. Griswold
#
#	Date:     January 21, 1999
#
############################################################################
#
#  This file is in the public domain.
#
############################################################################
#
#  This program takes an Icon expression is given on the command line, and
#  writes its results to standard output.  Watch for syntactic problems.
#
############################################################################
#
#  Requires:  system(), pipes
#
############################################################################
#
#  Links:  exprfile
#
############################################################################

link exprfile

procedure main(args)
   local input

   input := exprfile(args[1], "seqfncs")

   while write(read(input))

end