[comp.lang.icon] input pushbacks

cargo@CHERRY.CRAY.COM (David S. Cargo) (05/16/91)

I'm writing a program that is simplified by having a mechanism for
"unreading" a line (or group of lines).  I'm looking a various
implementations for doing that.  Some use an input list that checked
for size before reading from a file.  Others use more elaborate
structures.

I'm curious about possible solutions the problem and whether other
people have found a need for such mechanisms themselves.
                         o       o
cargo@escargot.cray.com   \_____/
(612) 683-5591            /-o-o-\     _______
DDDD      SSSS   CCCC    /   ^   \   /\\\\\\\\
D   D    S      C        \ \___/ /  /\   ___  \
D   D     SSS   C         \_   _/  /\   /\\\\  \
D   D        S  C           \  \__/\   /\ @_/  /
DDDDavid SSSS.   CCCCargo    \____\____\______/

shafto@eos.arc.nasa.gov (Michael Shafto) (05/17/91)

Have you looked at the routine in Gimpel's
_Algorithms in SNOBOL4_, pp. 167ff.?

Mike