|
|
1.1 root 1: .so tmac.ilib
2: .TH SNAPSHOT 2 "The University of Arizona \- 4/9/83"
3: .SH NAME
4: snapshot \- snapshot of state of string scanning
5: .SH DESCRIPTION
6: The procedure \*Msnapshot()\fR writes a snapshot of the state of string
7: scanning, showing the value of \*M&subject\fR and \*M&pos\fR. For
8: example,
9: .DS
10: "((a+b)\-delta)/(c*d))" ? (tab(bal('+\-/*')) & snapshot())
11: .DE
12: produces
13: .DS
14: .CS
15: \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
16: | |
17: | &subject = "((a+b)\-delta)/(c*d))" |
18: | | |
19: \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
20: .CE
21: .DE
22: Note that the bar showing the \*M&pos\fR is positioned under the
23: \*M&pos\fRth character (actual positions are between characters).
24: If \*M&pos\fR is at the end of \*M&subject\fR, the bar is positioned
25: under the quotation mark delimiting the subject. For example,
26: .DS
27: "abcdefgh" ? (tab(0) & snapshot())
28: .DE
29: produces
30: .DS
31: .CS
32: \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
33: | |
34: | &subject = "abcdefgh" |
35: | | |
36: \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
37: .CE
38: .DE
39: Escape sequences are handled properly. For example,
40: .DS
41: "abc\etdef\enghi" ? (tab(upto('\en')) & snapshot())
42: .DE
43: produces
44: .DS
45: .CS
46: \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
47: | |
48: | &subject = "abc\etdef\enghi" |
49: | | |
50: \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
51: .CE
52: .DE
53: .SH AUTHOR
54: Ralph E. Griswold
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.