PPT Slide
SNOBOL4
PAT = (‘SUBROUTINE’ | ‘FUNCTION’) ARBNO(‘ ‘)
SPAN(‘ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789’) . NAME
IN LINE = INPUT :F(END)
LINE ‘C’ :S(IN)
LINE PAT :S(NEW)
CONT
LINE LEN(65) . LINE2
OUTPUT = LINE2 NAME N
N = N + 10 :(IN)
NEW
(NAME ‘000000’) LEN(6) . NAME
OUTPUT =
OUTPUT = ‘STARTING NEW ROUTINE’
N = 0 :(CONT)
END
excellent string manipulation facilities
automatic pattern matching, built-in functions
user-defined structures
recursion
C.11
Previous slide
Next slide
Back to first slide
View graphic version