|
|
1.1 root 1:
2:
3:
4: SNAPSHOT(2) Icon Program Library SNAPSHOT(2)
5:
6:
7:
8: NNNNAAAAMMMMEEEE
9: snapshot - snapshot of state of string scanning
10:
11: DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
12: The procedure ssssnnnnaaaappppsssshhhhooootttt(((()))) writes a snapshot of the state of
13: string scanning, showing the value of &&&&ssssuuuubbbbjjjjeeeecccctttt and &&&&ppppoooossss. For
14: example,
15:
16: "((a+b)-delta)/(c*d))" ? (tab(bal('+-/*')) & snapshot())
17:
18: produces
19:
20: -------------------------------------
21: | |
22: | &subject = "((a+b)-delta)/(c*d))" |
23: | | |
24: -------------------------------------
25:
26: Note that the bar showing the &&&&ppppoooossss is positioned under the
27: &&&&ppppoooossssth character (actual positions are between characters).
28: If &&&&ppppoooossss is at the end of &&&&ssssuuuubbbbjjjjeeeecccctttt, the bar is positioned
29: under the quotation mark delimiting the subject. For exam-
30: ple,
31:
32: "abcdefgh" ? (tab(0) & snapshot())
33:
34: produces
35:
36: -------------------------
37: | |
38: | &subject = "abcdefgh" |
39: | | |
40: -------------------------
41:
42: Escape sequences are handled properly. For example,
43:
44: "abc\tdef\nghi" ? (tab(upto('\n')) & snapshot())
45:
46: produces
47:
48: ------------------------------
49: | |
50: | &subject = "abc\tdef\nghi" |
51: | | |
52: ------------------------------
53:
54:
55: AAAAUUUUTTTTHHHHOOOORRRR
56: Ralph E. Griswold
57:
58:
59:
60:
61:
62:
63: Version 5.9 The University of Arizona - 4/9/83 1
64:
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.