File:  [CSRG BSD Unix] / 43BSD / contrib / icon / man / cat2 / snapshot.2
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3




SNAPSHOT(2)           Icon Program Library            SNAPSHOT(2)



NNNNAAAAMMMMEEEE
     snapshot - snapshot of state of string scanning

DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
     The procedure ssssnnnnaaaappppsssshhhhooootttt(((()))) writes a snapshot of the state of
     string scanning, showing the value of &&&&ssssuuuubbbbjjjjeeeecccctttt and &&&&ppppoooossss. For
     example,

          "((a+b)-delta)/(c*d))" ? (tab(bal('+-/*')) & snapshot())

     produces

          -------------------------------------
          |                                   |
          | &subject = "((a+b)-delta)/(c*d))" |
          |                          |        |
          -------------------------------------

     Note that the bar showing the &&&&ppppoooossss is positioned under the
     &&&&ppppoooossssth character (actual positions are between characters).
     If &&&&ppppoooossss is at the end of &&&&ssssuuuubbbbjjjjeeeecccctttt, the bar is positioned
     under the quotation mark delimiting the subject. For exam-
     ple,

          "abcdefgh" ? (tab(0) & snapshot())

     produces

          -------------------------
          |                       |
          | &subject = "abcdefgh" |
          |                     | |
          -------------------------

     Escape sequences are handled properly. For example,

          "abc\tdef\nghi" ? (tab(upto('\n')) & snapshot())

     produces

          ------------------------------
          |                            |
          | &subject = "abc\tdef\nghi" |
          |                     |      |
          ------------------------------


AAAAUUUUTTTTHHHHOOOORRRR
     Ralph E. Griswold






Version 5.9    The University of Arizona - 4/9/83               1




unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.