Megatest

Hex Artifact Content
Login

Artifact 692dd68f5fbfd02027ae56628c7dad5c4a71112c:


0000: 23 21 2f 6d 66 73 2f 70 6b 67 73 2f 63 68 69 63  #!/mfs/pkgs/chic
0010: 6b 65 6e 2f 34 2e 38 2e 30 2e 35 2f 62 69 6e 2f  ken/4.8.0.5/bin/
0020: 63 73 69 20 2d 6e 62 71 0a 0a 3b 3b 20 20 43 6f  csi -nbq..;;  Co
0030: 70 79 72 69 67 68 74 20 32 30 30 36 2d 32 30 31  pyright 2006-201
0040: 37 2c 20 4d 61 74 74 68 65 77 20 57 65 6c 6c 61  7, Matthew Wella
0050: 6e 64 2e 0a 3b 3b 20 0a 3b 3b 20 54 68 69 73 20  nd..;; .;; This 
0060: 66 69 6c 65 20 69 73 20 70 61 72 74 20 6f 66 20  file is part of 
0070: 4d 65 67 61 74 65 73 74 2e 0a 3b 3b 20 0a 3b 3b  Megatest..;; .;;
0080: 20 20 20 20 20 4d 65 67 61 74 65 73 74 20 69 73       Megatest is
0090: 20 66 72 65 65 20 73 6f 66 74 77 61 72 65 3a 20   free software: 
00a0: 79 6f 75 20 63 61 6e 20 72 65 64 69 73 74 72 69  you can redistri
00b0: 62 75 74 65 20 69 74 20 61 6e 64 2f 6f 72 20 6d  bute it and/or m
00c0: 6f 64 69 66 79 0a 3b 3b 20 20 20 20 20 69 74 20  odify.;;     it 
00d0: 75 6e 64 65 72 20 74 68 65 20 74 65 72 6d 73 20  under the terms 
00e0: 6f 66 20 74 68 65 20 47 4e 55 20 47 65 6e 65 72  of the GNU Gener
00f0: 61 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 73  al Public Licens
0100: 65 20 61 73 20 70 75 62 6c 69 73 68 65 64 20 62  e as published b
0110: 79 0a 3b 3b 20 20 20 20 20 74 68 65 20 46 72 65  y.;;     the Fre
0120: 65 20 53 6f 66 74 77 61 72 65 20 46 6f 75 6e 64  e Software Found
0130: 61 74 69 6f 6e 2c 20 65 69 74 68 65 72 20 76 65  ation, either ve
0140: 72 73 69 6f 6e 20 33 20 6f 66 20 74 68 65 20 4c  rsion 3 of the L
0150: 69 63 65 6e 73 65 2c 20 6f 72 0a 3b 3b 20 20 20  icense, or.;;   
0160: 20 20 28 61 74 20 79 6f 75 72 20 6f 70 74 69 6f    (at your optio
0170: 6e 29 20 61 6e 79 20 6c 61 74 65 72 20 76 65 72  n) any later ver
0180: 73 69 6f 6e 2e 0a 3b 3b 20 0a 3b 3b 20 20 20 20  sion..;; .;;    
0190: 20 4d 65 67 61 74 65 73 74 20 69 73 20 64 69 73   Megatest is dis
01a0: 74 72 69 62 75 74 65 64 20 69 6e 20 74 68 65 20  tributed in the 
01b0: 68 6f 70 65 20 74 68 61 74 20 69 74 20 77 69 6c  hope that it wil
01c0: 6c 20 62 65 20 75 73 65 66 75 6c 2c 0a 3b 3b 20  l be useful,.;; 
01d0: 20 20 20 20 62 75 74 20 57 49 54 48 4f 55 54 20      but WITHOUT 
01e0: 41 4e 59 20 57 41 52 52 41 4e 54 59 3b 20 77 69  ANY WARRANTY; wi
01f0: 74 68 6f 75 74 20 65 76 65 6e 20 74 68 65 20 69  thout even the i
0200: 6d 70 6c 69 65 64 20 77 61 72 72 61 6e 74 79 20  mplied warranty 
0210: 6f 66 0a 3b 3b 20 20 20 20 20 4d 45 52 43 48 41  of.;;     MERCHA
0220: 4e 54 41 42 49 4c 49 54 59 20 6f 72 20 46 49 54  NTABILITY or FIT
0230: 4e 45 53 53 20 46 4f 52 20 41 20 50 41 52 54 49  NESS FOR A PARTI
0240: 43 55 4c 41 52 20 50 55 52 50 4f 53 45 2e 20 20  CULAR PURPOSE.  
0250: 53 65 65 20 74 68 65 0a 3b 3b 20 20 20 20 20 47  See the.;;     G
0260: 4e 55 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69  NU General Publi
0270: 63 20 4c 69 63 65 6e 73 65 20 66 6f 72 20 6d 6f  c License for mo
0280: 72 65 20 64 65 74 61 69 6c 73 2e 0a 3b 3b 20 0a  re details..;; .
0290: 3b 3b 20 20 20 20 20 59 6f 75 20 73 68 6f 75 6c  ;;     You shoul
02a0: 64 20 68 61 76 65 20 72 65 63 65 69 76 65 64 20  d have received 
02b0: 61 20 63 6f 70 79 20 6f 66 20 74 68 65 20 47 4e  a copy of the GN
02c0: 55 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63  U General Public
02d0: 20 4c 69 63 65 6e 73 65 0a 3b 3b 20 20 20 20 20   License.;;     
02e0: 61 6c 6f 6e 67 20 77 69 74 68 20 4d 65 67 61 74  along with Megat
02f0: 65 73 74 2e 20 20 49 66 20 6e 6f 74 2c 20 73 65  est.  If not, se
0300: 65 20 3c 68 74 74 70 3a 2f 2f 77 77 77 2e 67 6e  e <http://www.gn
0310: 75 2e 6f 72 67 2f 6c 69 63 65 6e 73 65 73 2f 3e  u.org/licenses/>
0320: 2e 0a 3b 3b 0a 0a 3b 3b 20 43 6f 6d 69 6e 67 20  ..;;..;; Coming 
0330: 73 6f 6f 6e 20 28 72 69 67 68 74 3f 29 20 55 73  soon (right?) Us
0340: 61 67 65 3a 20 70 6c 6f 74 2d 63 6f 64 65 20 66  age: plot-code f
0350: 69 6c 65 31 2e 73 63 6d 2c 66 69 6c 65 32 2e 73  ile1.scm,file2.s
0360: 63 6d 20 22 66 75 6e 31 2c 66 75 6e 32 2c 78 2a  cm "fun1,fun2,x*
0370: 22 20 2a 2e 73 63 6d 20 3e 20 70 6c 6f 74 2e 64  " *.scm > plot.d
0380: 6f 74 0a 3b 3b 20 55 73 61 67 65 3a 20 70 6c 6f  ot.;; Usage: plo
0390: 74 2d 63 6f 64 65 20 66 69 6c 65 31 2e 73 63 6d  t-code file1.scm
03a0: 2c 66 69 6c 65 32 2e 73 63 6d 20 2a 2e 73 63 6d  ,file2.scm *.scm
03b0: 20 3e 20 70 6c 6f 74 2e 64 6f 74 0a 3b 3b 20 20   > plot.dot.;;  
03c0: 20 20 20 20 20 20 64 6f 74 20 2d 54 70 64 66 20        dot -Tpdf 
03d0: 70 6c 6f 74 2e 64 6f 74 20 3e 20 70 6c 6f 74 2e  plot.dot > plot.
03e0: 70 64 66 0a 3b 3b 20 66 69 72 73 74 20 70 61 72  pdf.;; first par
03f0: 61 6d 20 69 73 20 63 6f 6d 6d 61 20 73 65 70 61  am is comma sepa
0400: 72 61 74 65 64 20 6c 69 73 74 20 6f 66 20 66 69  rated list of fi
0410: 6c 65 73 20 74 6f 20 69 6e 63 6c 75 64 65 20 69  les to include i
0420: 6e 20 74 68 65 20 6d 61 70 2c 20 75 73 65 20 2d  n the map, use -
0430: 20 74 6f 20 64 6f 20 61 6c 6c 0a 3b 3b 20 73 65   to do all.;; se
0440: 63 6f 6e 64 20 70 61 72 61 6d 20 69 73 20 6c 69  cond param is li
0450: 73 74 20 6f 66 20 72 65 67 65 78 73 20 66 6f 72  st of regexs for
0460: 20 66 75 6e 63 74 69 6f 6e 73 20 74 6f 20 69 6e   functions to in
0470: 63 6c 75 64 65 20 69 6e 20 74 68 65 20 6d 61 70  clude in the map
0480: 0a 3b 3b 20 74 68 69 72 64 20 70 61 72 61 6d 20  .;; third param 
0490: 69 73 20 6c 69 73 74 20 6f 66 20 66 69 6c 65 73  is list of files
04a0: 20 74 6f 20 73 63 61 6e 0a 0a 3b 3b 20 28 75 73   to scan..;; (us
04b0: 65 20 72 65 67 65 78 20 73 72 66 69 2d 36 39 20  e regex srfi-69 
04c0: 73 72 66 69 2d 31 20 73 72 66 69 2d 31 33 29 0a  srfi-1 srfi-13).
04d0: 0a 28 6d 6f 64 75 6c 65 20 70 6c 6f 74 2d 63 6f  .(module plot-co
04e0: 64 65 0a 09 2a 0a 0a 28 69 6d 70 6f 72 74 20 73  de..*..(import s
04f0: 63 68 65 6d 65 20 63 68 69 63 6b 65 6e 2e 62 61  cheme chicken.ba
0500: 73 65 20 63 68 69 63 6b 65 6e 2e 70 6f 72 74 20  se chicken.port 
0510: 63 68 69 63 6b 65 6e 2e 73 74 72 69 6e 67 20 63  chicken.string c
0520: 68 69 63 6b 65 6e 2e 69 6f 29 0a 28 69 6d 70 6f  hicken.io).(impo
0530: 72 74 20 63 68 69 63 6b 65 6e 2e 70 72 6f 63 65  rt chicken.proce
0540: 73 73 2d 63 6f 6e 74 65 78 74 29 09 0a 28 69 6d  ss-context)..(im
0550: 70 6f 72 74 09 72 65 67 65 78 20 73 72 66 69 2d  port.regex srfi-
0560: 31 20 73 72 66 69 2d 36 39 20 73 72 66 69 2d 31  1 srfi-69 srfi-1
0570: 33 20 6d 61 74 63 68 61 62 6c 65 29 0a 0a 28 64  3 matchable)..(d
0580: 65 66 69 6e 65 20 66 69 6c 65 73 20 23 66 29 0a  efine files #f).
0590: 28 64 65 66 69 6e 65 20 74 61 72 67 73 20 23 66  (define targs #f
05a0: 29 0a 28 64 65 66 69 6e 65 20 66 75 6e 63 74 69  ).(define functi
05b0: 6f 6e 2d 70 61 74 74 20 23 66 29 0a 28 64 65 66  on-patt #f).(def
05c0: 69 6e 65 20 74 61 72 67 73 20 23 66 29 20 0a 0a  ine targs #f) ..
05d0: 28 6d 61 74 63 68 20 28 63 6f 6d 6d 61 6e 64 2d  (match (command-
05e0: 6c 69 6e 65 2d 61 72 67 75 6d 65 6e 74 73 29 0a  line-arguments).
05f0: 20 20 20 20 20 20 20 28 28 74 61 72 67 66 69 6c         ((targfil
0600: 65 73 20 66 6e 72 78 20 2e 20 73 63 61 6e 66 69  es fnrx . scanfi
0610: 6c 65 73 29 0a 09 28 73 65 74 21 20 74 61 72 67  les)..(set! targ
0620: 73 20 28 73 74 72 69 6e 67 2d 73 70 6c 69 74 2d  s (string-split-
0630: 66 69 65 6c 64 73 20 22 2c 22 20 74 61 72 67 66  fields "," targf
0640: 69 6c 65 73 20 23 3a 69 6e 66 69 78 29 29 0a 09  iles #:infix))..
0650: 28 73 65 74 21 20 66 75 6e 63 74 69 6f 6e 2d 70  (set! function-p
0660: 61 74 74 20 66 6e 72 78 29 0a 09 28 73 65 74 21  att fnrx)..(set!
0670: 20 66 69 6c 65 73 20 73 63 61 6e 66 69 6c 65 73   files scanfiles
0680: 29 29 0a 20 20 20 20 20 20 20 28 65 6c 73 65 0a  )).       (else.
0690: 09 28 70 72 69 6e 74 20 22 55 73 61 67 65 3a 20  .(print "Usage: 
06a0: 70 6c 6f 74 2d 63 6f 64 65 20 66 69 6c 65 31 2e  plot-code file1.
06b0: 73 63 6d 2c 66 69 6c 65 32 2e 73 63 6d 20 2a 2e  scm,file2.scm *.
06c0: 73 63 6d 20 3e 20 70 6c 6f 74 2e 64 6f 74 0a 20  scm > plot.dot. 
06d0: 64 6f 74 20 2d 54 70 64 66 20 70 6c 6f 74 2e 64  dot -Tpdf plot.d
06e0: 6f 74 20 3e 20 70 6c 6f 74 2e 70 64 66 22 29 0a  ot > plot.pdf").
06f0: 09 28 65 78 69 74 29 29 29 0a 0a 3b 3b 20 28 64  .(exit)))..;; (d
0700: 65 66 69 6e 65 20 66 69 6c 65 73 20 28 63 64 72  efine files (cdr
0710: 20 28 63 64 64 64 64 72 20 28 61 72 67 76 29 29   (cddddr (argv))
0720: 29 29 0a 3b 3b 20 0a 3b 3b 20 28 6c 65 74 20 28  )).;; .;; (let (
0730: 28 74 61 72 67 64 61 74 20 28 63 61 64 64 64 72  (targdat (cadddr
0740: 20 28 61 72 67 76 29 29 29 29 0a 3b 3b 20 20 20   (argv)))).;;   
0750: 28 69 66 20 28 65 71 75 61 6c 3f 20 74 61 72 67  (if (equal? targ
0760: 64 61 74 20 22 2d 22 29 0a 3b 3b 20 20 20 20 20  dat "-").;;     
0770: 20 20 28 73 65 74 21 20 74 61 72 67 73 20 66 69    (set! targs fi
0780: 6c 65 73 29 0a 3b 3b 20 20 20 20 20 20 20 28 73  les).;;       (s
0790: 65 74 21 20 74 61 72 67 73 20 28 73 74 72 69 6e  et! targs (strin
07a0: 67 2d 73 70 6c 69 74 20 74 61 72 67 64 61 74 20  g-split targdat 
07b0: 22 2c 22 29 29 29 29 0a 0a 28 64 65 66 69 6e 65  ","))))..(define
07c0: 20 66 75 6e 63 74 69 6f 6e 2d 72 78 20 20 20 28   function-rx   (
07d0: 72 65 67 65 78 70 20 66 75 6e 63 74 69 6f 6e 2d  regexp function-
07e0: 70 61 74 74 29 29 0a 28 64 65 66 69 6e 65 20 66  patt)).(define f
07f0: 69 6c 65 64 61 74 2d 64 65 66 6e 73 20 28 6d 61  iledat-defns (ma
0800: 6b 65 2d 68 61 73 68 2d 74 61 62 6c 65 29 29 0a  ke-hash-table)).
0810: 28 64 65 66 69 6e 65 20 66 69 6c 65 64 61 74 2d  (define filedat-
0820: 75 73 61 67 65 73 20 28 6d 61 6b 65 2d 68 61 73  usages (make-has
0830: 68 2d 74 61 62 6c 65 29 29 0a 0a 28 64 65 66 69  h-table))..(defi
0840: 6e 65 20 64 65 66 6e 2d 72 78 20 28 72 65 67 65  ne defn-rx (rege
0850: 78 70 20 22 5e 5c 5c 73 2a 5c 5c 28 64 65 66 69  xp "^\\s*\\(defi
0860: 6e 65 5c 5c 73 2b 5c 5c 28 28 5b 5e 5c 5c 73 5c  ne\\s+\\(([^\\s\
0870: 5c 29 5d 2b 29 2e 2a 22 29 29 0a 28 64 65 66 69  \)]+).*")).(defi
0880: 6e 65 20 61 6c 6c 2d 72 65 67 65 78 73 20 28 6d  ne all-regexs (m
0890: 61 6b 65 2d 68 61 73 68 2d 74 61 62 6c 65 29 29  ake-hash-table))
08a0: 0a 0a 28 64 65 66 69 6e 65 20 61 6c 6c 2d 66 6e  ..(define all-fn
08b0: 73 20 27 28 29 29 0a 0a 3b 3b 20 66 6f 72 20 74  s '())..;; for t
08c0: 68 65 20 73 65 0a 0a 28 64 65 66 69 6e 65 20 28  he se..(define (
08d0: 70 72 69 6e 74 2d 65 72 72 20 2e 20 64 61 74 61  print-err . data
08e0: 29 0a 20 20 28 77 69 74 68 2d 6f 75 74 70 75 74  ).  (with-output
08f0: 2d 74 6f 2d 70 6f 72 74 20 28 63 75 72 72 65 6e  -to-port (curren
0900: 74 2d 65 72 72 6f 72 2d 70 6f 72 74 29 0a 20 20  t-error-port).  
0910: 20 20 28 6c 61 6d 62 64 61 20 28 29 0a 20 20 20    (lambda ().   
0920: 20 20 20 28 61 70 70 6c 79 20 70 72 69 6e 74 20     (apply print 
0930: 64 61 74 61 29 29 29 29 0a 0a 28 70 72 69 6e 74  data))))..(print
0940: 2d 65 72 72 20 22 4d 61 6b 69 6e 67 20 67 72 61  -err "Making gra
0950: 70 68 20 66 6f 72 20 66 69 6c 65 73 3a 20 22 20  ph for files: " 
0960: 28 73 74 72 69 6e 67 2d 69 6e 74 65 72 73 70 65  (string-interspe
0970: 72 73 65 20 74 61 72 67 73 20 22 2c 20 22 29 29  rse targs ", "))
0980: 0a 28 70 72 69 6e 74 2d 65 72 72 20 22 4c 6f 6f  .(print-err "Loo
0990: 6b 69 6e 67 20 61 74 20 66 69 6c 65 73 3a 20 22  king at files: "
09a0: 20 28 73 74 72 69 6e 67 2d 69 6e 74 65 72 73 70   (string-intersp
09b0: 65 72 73 65 20 66 69 6c 65 73 20 22 2c 20 22 29  erse files ", ")
09c0: 29 0a 28 70 72 69 6e 74 2d 65 72 72 20 22 46 75  ).(print-err "Fu
09d0: 6e 63 74 69 6f 6e 20 72 65 67 65 78 3a 20 22 20  nction regex: " 
09e0: 66 75 6e 63 74 69 6f 6e 2d 70 61 74 74 29 0a 0a  function-patt)..
09f0: 3b 3b 20 47 61 74 68 65 72 20 74 68 65 20 66 75  ;; Gather the fu
0a00: 6e 63 74 69 6f 6e 73 0a 3b 3b 0a 28 66 6f 72 2d  nctions.;;.(for-
0a10: 65 61 63 68 20 0a 20 28 6c 61 6d 62 64 61 20 28  each . (lambda (
0a20: 66 6e 61 6d 65 29 0a 20 20 20 28 70 72 69 6e 74  fname).   (print
0a30: 2d 65 72 72 20 22 50 72 6f 63 65 73 73 69 6e 67  -err "Processing
0a40: 20 66 69 6c 65 20 22 20 66 6e 61 6d 65 29 0a 20   file " fname). 
0a50: 20 20 28 77 69 74 68 2d 69 6e 70 75 74 2d 66 72    (with-input-fr
0a60: 6f 6d 2d 66 69 6c 65 20 66 6e 61 6d 65 0a 20 20  om-file fname.  
0a70: 20 20 20 28 6c 61 6d 62 64 61 20 28 29 0a 20 20     (lambda ().  
0a80: 20 20 20 20 20 28 6c 65 74 20 6c 6f 6f 70 20 28       (let loop (
0a90: 28 69 6e 6c 20 28 72 65 61 64 2d 6c 69 6e 65 29  (inl (read-line)
0aa0: 29 29 0a 09 20 28 69 66 20 28 6e 6f 74 20 28 65  )).. (if (not (e
0ab0: 6f 66 2d 6f 62 6a 65 63 74 3f 20 69 6e 6c 29 29  of-object? inl))
0ac0: 0a 09 20 20 20 20 20 28 6c 65 74 20 28 28 6d 61  ..     (let ((ma
0ad0: 74 63 68 20 28 73 74 72 69 6e 67 2d 6d 61 74 63  tch (string-matc
0ae0: 68 20 64 65 66 6e 2d 72 78 20 69 6e 6c 29 29 29  h defn-rx inl)))
0af0: 0a 09 20 20 20 20 20 20 20 28 69 66 20 6d 61 74  ..       (if mat
0b00: 63 68 20 0a 09 09 20 20 20 28 6c 65 74 20 28 28  ch ...   (let ((
0b10: 66 6e 6e 61 6d 65 20 28 63 61 64 72 20 6d 61 74  fnname (cadr mat
0b20: 63 68 29 29 29 0a 09 09 20 20 20 20 20 3b 3b 20  ch)))...     ;; 
0b30: 28 70 72 69 6e 74 20 22 20 20 20 22 20 66 6e 6e  (print "   " fnn
0b40: 61 6d 65 29 0a 09 09 20 20 20 20 20 28 69 66 20  ame)...     (if 
0b50: 28 73 74 72 69 6e 67 2d 6d 61 74 63 68 20 66 75  (string-match fu
0b60: 6e 63 74 69 6f 6e 2d 72 78 20 66 6e 6e 61 6d 65  nction-rx fnname
0b70: 29 0a 09 09 09 20 28 62 65 67 69 6e 0a 09 09 09  ).... (begin....
0b80: 20 20 20 28 73 65 74 21 20 61 6c 6c 2d 66 6e 73     (set! all-fns
0b90: 20 28 63 6f 6e 73 20 66 6e 6e 61 6d 65 20 61 6c   (cons fnname al
0ba0: 6c 2d 66 6e 73 29 29 29 0a 09 09 09 20 28 68 61  l-fns))).... (ha
0bb0: 73 68 2d 74 61 62 6c 65 2d 73 65 74 21 20 0a 09  sh-table-set! ..
0bc0: 09 09 20 20 66 69 6c 65 64 61 74 2d 64 65 66 6e  ..  filedat-defn
0bd0: 73 20 0a 09 09 09 20 20 66 6e 61 6d 65 0a 09 09  s ....  fname...
0be0: 09 20 20 28 63 6f 6e 73 20 66 6e 6e 61 6d 65 20  .  (cons fnname 
0bf0: 28 68 61 73 68 2d 74 61 62 6c 65 2d 72 65 66 2f  (hash-table-ref/
0c00: 64 65 66 61 75 6c 74 20 66 69 6c 65 64 61 74 2d  default filedat-
0c10: 64 65 66 6e 73 20 66 6e 61 6d 65 20 27 28 29 29  defns fname '())
0c20: 29 29 0a 09 09 09 20 29 29 29 0a 09 20 20 20 20  )).... )))..    
0c30: 20 20 20 28 6c 6f 6f 70 20 28 72 65 61 64 2d 6c     (loop (read-l
0c40: 69 6e 65 29 29 29 29 29 29 29 29 0a 20 66 69 6c  ine)))))))). fil
0c50: 65 73 29 0a 0a 3b 3b 20 66 69 6c 6c 20 75 70 20  es)..;; fill up 
0c60: 74 68 65 20 72 65 67 65 78 20 68 61 73 68 0a 28  the regex hash.(
0c70: 70 72 69 6e 74 2d 65 72 72 20 22 4d 61 6b 65 20  print-err "Make 
0c80: 74 68 65 20 68 75 67 65 20 72 65 67 65 78 20 68  the huge regex h
0c90: 61 73 68 22 29 0a 28 66 6f 72 2d 65 61 63 68 0a  ash").(for-each.
0ca0: 20 28 6c 61 6d 62 64 61 20 28 66 6e 6e 61 6d 65   (lambda (fnname
0cb0: 29 0a 20 20 20 28 68 61 73 68 2d 74 61 62 6c 65  ).   (hash-table
0cc0: 2d 73 65 74 21 20 61 6c 6c 2d 72 65 67 65 78 73  -set! all-regexs
0cd0: 20 66 6e 6e 61 6d 65 20 28 72 65 67 65 78 70 20   fnname (regexp 
0ce0: 28 63 6f 6e 63 20 22 5e 28 7c 2e 2a 5b 5e 61 2d  (conc "^(|.*[^a-
0cf0: 7a 41 2d 5a 5d 2b 29 22 20 66 6e 6e 61 6d 65 20  zA-Z]+)" fnname 
0d00: 22 28 5b 5e 61 2d 7a 41 2d 5a 5d 2b 7c 29 24 22  "([^a-zA-Z]+|)$"
0d10: 29 29 29 29 0a 20 28 63 6f 6e 73 20 22 74 6f 70  )))). (cons "top
0d20: 6c 65 76 65 6c 22 20 61 6c 6c 2d 66 6e 73 29 29  level" all-fns))
0d30: 0a 0a 28 64 65 66 69 6e 65 20 62 72 65 61 64 63  ..(define breadc
0d40: 72 75 6d 62 73 20 28 6d 61 6b 65 2d 68 61 73 68  rumbs (make-hash
0d50: 2d 74 61 62 6c 65 29 29 0a 0a 28 64 65 66 69 6e  -table))..(defin
0d60: 65 20 28 68 61 76 65 2d 66 75 6e 63 74 69 6f 6e  e (have-function
0d70: 20 69 6e 6c 29 0a 20 20 28 6c 65 74 20 6c 6f 6f   inl).  (let loo
0d80: 70 20 28 28 68 65 64 20 28 63 61 72 20 61 6c 6c  p ((hed (car all
0d90: 2d 66 6e 73 29 29 0a 09 20 20 20 20 20 28 74 61  -fns))..     (ta
0da0: 6c 20 28 63 64 72 20 61 6c 6c 2d 66 6e 73 29 29  l (cdr all-fns))
0db0: 29 0a 20 20 20 20 28 69 66 20 28 73 74 72 69 6e  ).    (if (strin
0dc0: 67 2d 63 6f 6e 74 61 69 6e 73 20 69 6e 6c 20 68  g-contains inl h
0dd0: 65 64 29 0a 09 23 74 0a 09 28 69 66 20 28 6e 75  ed)..#t..(if (nu
0de0: 6c 6c 3f 20 74 61 6c 29 0a 09 20 20 20 20 23 66  ll? tal)..    #f
0df0: 0a 09 20 20 20 20 28 6c 6f 6f 70 20 28 63 61 72  ..    (loop (car
0e00: 20 74 61 6c 29 28 63 64 72 20 74 61 6c 29 29 29   tal)(cdr tal)))
0e10: 29 29 29 0a 0a 28 64 65 66 69 6e 65 20 28 6c 6f  )))..(define (lo
0e20: 6f 6b 2d 66 6f 72 2d 61 6c 6c 2d 63 61 6c 6c 73  ok-for-all-calls
0e30: 20 69 6e 6c 20 66 6e 6e 61 6d 65 29 0a 20 20 28   inl fnname).  (
0e40: 69 66 20 28 68 61 76 65 2d 66 75 6e 63 74 69 6f  if (have-functio
0e50: 6e 20 69 6e 6c 29 20 3b 3b 20 28 73 74 72 69 6e  n inl) ;; (strin
0e60: 67 2d 73 65 61 72 63 68 20 68 61 76 65 2d 66 75  g-search have-fu
0e70: 6e 63 74 69 6f 6e 2d 72 78 20 69 6e 6c 29 0a 20  nction-rx inl). 
0e80: 20 20 20 20 20 28 6c 65 74 20 6c 6f 6f 70 20 28       (let loop (
0e90: 28 68 65 64 20 28 63 61 72 20 61 6c 6c 2d 66 6e  (hed (car all-fn
0ea0: 73 29 29 0a 09 09 20 28 74 61 6c 20 28 63 64 72  s))... (tal (cdr
0eb0: 20 61 6c 6c 2d 66 6e 73 29 29 0a 09 09 20 28 72   all-fns))... (r
0ec0: 65 73 20 27 28 29 29 29 0a 09 28 6c 65 74 20 28  es '()))..(let (
0ed0: 28 6d 61 74 63 68 20 28 73 74 72 69 6e 67 2d 6d  (match (string-m
0ee0: 61 74 63 68 20 28 68 61 73 68 2d 74 61 62 6c 65  atch (hash-table
0ef0: 2d 72 65 66 20 61 6c 6c 2d 72 65 67 65 78 73 20  -ref all-regexs 
0f00: 68 65 64 29 20 69 6e 6c 29 29 29 0a 09 20 20 28  hed) inl)))..  (
0f10: 69 66 20 6d 61 74 63 68 0a 09 20 20 20 20 20 20  if match..      
0f20: 28 6c 65 74 20 28 28 6e 65 77 72 65 73 20 28 63  (let ((newres (c
0f30: 6f 6e 73 20 68 65 64 20 72 65 73 29 29 29 0a 09  ons hed res)))..
0f40: 09 28 69 66 20 28 6e 75 6c 6c 3f 20 74 61 6c 29  .(if (null? tal)
0f50: 0a 09 09 20 20 20 20 6e 65 77 72 65 73 0a 09 09  ...    newres...
0f60: 20 20 20 20 28 6c 6f 6f 70 20 28 63 61 72 20 74      (loop (car t
0f70: 61 6c 29 0a 09 09 09 20 20 28 63 64 72 20 74 61  al)....  (cdr ta
0f80: 6c 29 0a 09 09 09 20 20 6e 65 77 72 65 73 29 29  l)....  newres))
0f90: 29 0a 09 20 20 20 20 20 20 28 69 66 20 28 6e 75  )..      (if (nu
0fa0: 6c 6c 3f 20 74 61 6c 29 0a 09 09 20 20 72 65 73  ll? tal)...  res
0fb0: 0a 09 09 20 20 28 6c 6f 6f 70 20 28 63 61 72 20  ...  (loop (car 
0fc0: 74 61 6c 29 28 63 64 72 20 74 61 6c 29 20 72 65  tal)(cdr tal) re
0fd0: 73 29 29 29 29 29 0a 20 20 20 20 20 20 27 28 29  s))))).      '()
0fe0: 29 29 0a 0a 3b 3b 20 28 64 65 66 69 6e 65 20 6d  ))..;; (define m
0ff0: 6d 2d 68 65 61 64 65 72 20 23 3c 3c 4d 4d 48 45  m-header #<<MMHE
1000: 41 44 45 52 0a 3b 3b 20 3c 6d 61 70 20 76 65 72  ADER.;; <map ver
1010: 73 69 6f 6e 3d 22 66 72 65 65 70 6c 61 6e 65 20  sion="freeplane 
1020: 31 2e 32 2e 30 22 3e 0a 3b 3b 20 3c 21 2d 2d 54  1.2.0">.;; <!--T
1030: 6f 20 76 69 65 77 20 74 68 69 73 20 66 69 6c 65  o view this file
1040: 2c 20 64 6f 77 6e 6c 6f 61 64 20 66 72 65 65 20  , download free 
1050: 6d 69 6e 64 20 6d 61 70 70 69 6e 67 20 73 6f 66  mind mapping sof
1060: 74 77 61 72 65 20 46 72 65 65 70 6c 61 6e 65 20  tware Freeplane 
1070: 66 72 6f 6d 20 68 74 74 70 3a 2f 2f 66 72 65 65  from http://free
1080: 70 6c 61 6e 65 2e 73 6f 75 72 63 65 66 6f 72 67  plane.sourceforg
1090: 65 2e 6e 65 74 20 2d 2d 3e 0a 3b 3b 20 0a 3b 3b  e.net -->.;; .;;
10a0: 20 4d 4d 48 45 41 44 45 52 0a 3b 3b 20 0a 3b 3b   MMHEADER.;; .;;
10b0: 20 28 64 65 66 69 6e 65 20 28 61 64 64 2d 6e 6f   (define (add-no
10c0: 64 65 20 74 65 78 74 29 0a 3b 3b 20 20 20 3c 6e  de text).;;   <n
10d0: 6f 64 65 20 54 45 58 54 3d 22 68 6f 6d 65 6e 6f  ode TEXT="homeno
10e0: 64 65 22 20 49 44 3d 22 49 44 5f 31 37 32 33 32  de" ID="ID_17232
10f0: 35 35 36 35 31 22 20 43 52 45 41 54 45 44 3d 22  55651" CREATED="
1100: 31 32 38 33 30 39 33 33 38 30 35 35 33 22 20 4d  1283093380553" M
1110: 4f 44 49 46 49 45 44 3d 22 31 34 31 37 31 31 33  ODIFIED="1417113
1120: 34 34 32 39 35 35 22 3e 3c 68 6f 6f 6b 20 4e 41  442955"><hook NA
1130: 4d 45 3d 22 4d 61 70 53 74 79 6c 65 22 3e 0a 3b  ME="MapStyle">.;
1140: 3b 20 29 0a 3b 3b 20 0a 3b 3b 20 20 6d 69 6e 69  ; ).;; .;;  mini
1150: 6d 61 6c 20 6d 69 6e 64 6d 61 70 20 66 69 6c 65  mal mindmap file
1160: 0a 3b 3b 20 20 3c 6d 61 70 20 76 65 72 73 69 6f  .;;  <map versio
1170: 6e 3d 22 66 72 65 65 70 6c 61 6e 65 20 31 2e 32  n="freeplane 1.2
1180: 2e 30 22 3e 0a 3b 3b 20 20 20 3c 21 2d 2d 54 6f  .0">.;;   <!--To
1190: 20 76 69 65 77 20 74 68 69 73 20 66 69 6c 65 2c   view this file,
11a0: 20 64 6f 77 6e 6c 6f 61 64 20 66 72 65 65 20 6d   download free m
11b0: 69 6e 64 20 6d 61 70 70 69 6e 67 20 73 6f 66 74  ind mapping soft
11c0: 77 61 72 65 20 46 72 65 65 70 6c 61 6e 65 20 66  ware Freeplane f
11d0: 72 6f 6d 20 68 74 74 70 3a 2f 2f 66 72 65 65 70  rom http://freep
11e0: 6c 61 6e 65 2e 73 6f 75 72 63 65 66 6f 72 67 65  lane.sourceforge
11f0: 2e 6e 65 74 20 2d 2d 3e 0a 3b 3b 20 20 20 3c 6e  .net -->.;;   <n
1200: 6f 64 65 20 54 45 58 54 3d 22 68 6f 6d 65 6e 6f  ode TEXT="homeno
1210: 64 65 22 20 49 44 3d 22 49 44 5f 31 37 32 33 32  de" ID="ID_17232
1220: 35 35 36 35 31 22 20 43 52 45 41 54 45 44 3d 22  55651" CREATED="
1230: 31 32 38 33 30 39 33 33 38 30 35 35 33 22 20 4d  1283093380553" M
1240: 4f 44 49 46 49 45 44 3d 22 31 34 31 37 31 31 33  ODIFIED="1417113
1250: 34 34 32 39 35 35 22 3e 0a 3b 3b 20 20 20 3c 6e  442955">.;;   <n
1260: 6f 64 65 20 54 45 58 54 3d 22 6e 6f 64 65 31 22  ode TEXT="node1"
1270: 20 50 4f 53 49 54 49 4f 4e 3d 22 72 69 67 68 74   POSITION="right
1280: 22 20 49 44 3d 22 49 44 5f 31 38 31 30 31 30 37  " ID="ID_1810107
1290: 39 33 39 22 20 43 52 45 41 54 45 44 3d 22 31 34  939" CREATED="14
12a0: 31 37 31 31 33 34 37 33 34 37 36 22 20 4d 4f 44  17113473476" MOD
12b0: 49 46 49 45 44 3d 22 31 34 31 37 31 31 33 34 38  IFIED="141711348
12c0: 30 34 32 35 22 3e 0a 3b 3b 20 20 20 3c 6e 6f 64  0425">.;;   <nod
12d0: 65 20 54 45 58 54 3d 22 6e 6f 64 65 32 22 20 49  e TEXT="node2" I
12e0: 44 3d 22 49 44 5f 36 38 31 33 33 32 35 36 22 20  D="ID_68133256" 
12f0: 43 52 45 41 54 45 44 3d 22 31 34 31 37 31 31 33  CREATED="1417113
1300: 34 38 32 31 33 34 22 20 4d 4f 44 49 46 49 45 44  482134" MODIFIED
1310: 3d 22 31 34 31 37 31 31 33 34 38 34 34 36 36 22  ="1417113484466"
1320: 2f 3e 0a 3b 3b 20 20 20 3c 6e 6f 64 65 20 54 45  />.;;   <node TE
1330: 58 54 3d 22 6e 6f 64 65 33 22 20 49 44 3d 22 49  XT="node3" ID="I
1340: 44 5f 31 35 37 32 32 38 34 38 32 31 22 20 43 52  D_1572284821" CR
1350: 45 41 54 45 44 3d 22 31 34 31 37 31 31 33 34 38  EATED="141711348
1360: 37 37 38 35 22 20 4d 4f 44 49 46 49 45 44 3d 22  7785" MODIFIED="
1370: 31 34 31 37 31 31 33 34 39 31 35 38 39 22 2f 3e  1417113491589"/>
1380: 0a 3b 3b 20 20 20 3c 2f 6e 6f 64 65 3e 0a 3b 3b  .;;   </node>.;;
1390: 20 20 20 3c 2f 6e 6f 64 65 3e 0a 3b 3b 20 20 20     </node>.;;   
13a0: 3c 2f 6d 61 70 3e 0a 0a 3b 3b 20 47 61 74 68 65  </map>..;; Gathe
13b0: 72 20 74 68 65 20 75 73 61 67 65 73 0a 28 70 72  r the usages.(pr
13c0: 69 6e 74 20 22 64 69 67 72 61 70 68 20 47 20 7b  int "digraph G {
13d0: 22 29 0a 28 64 65 66 69 6e 65 20 63 75 72 72 2d  ").(define curr-
13e0: 63 6c 75 73 74 65 72 2d 6e 75 6d 20 30 29 0a 28  cluster-num 0).(
13f0: 64 65 66 69 6e 65 20 66 75 6e 63 74 69 6f 6e 2d  define function-
1400: 63 61 6c 6c 73 20 27 28 29 29 0a 0a 28 66 6f 72  calls '())..(for
1410: 2d 65 61 63 68 0a 20 28 6c 61 6d 62 64 61 20 28  -each. (lambda (
1420: 66 6e 61 6d 65 29 0a 20 20 20 28 6c 65 74 20 28  fname).   (let (
1430: 28 6c 61 73 74 2d 66 75 6e 63 20 23 66 29 29 0a  (last-func #f)).
1440: 20 20 20 20 20 28 70 72 69 6e 74 2d 65 72 72 20       (print-err 
1450: 22 50 72 6f 63 65 73 73 69 6e 67 20 66 69 6c 65  "Processing file
1460: 20 22 20 66 6e 61 6d 65 29 0a 20 20 20 20 20 28   " fname).     (
1470: 70 72 69 6e 74 20 22 73 75 62 67 72 61 70 68 20  print "subgraph 
1480: 63 6c 75 73 74 65 72 5f 22 20 63 75 72 72 2d 63  cluster_" curr-c
1490: 6c 75 73 74 65 72 2d 6e 75 6d 20 22 20 7b 22 29  luster-num " {")
14a0: 0a 20 20 20 20 20 28 73 65 74 21 20 63 75 72 72  .     (set! curr
14b0: 2d 63 6c 75 73 74 65 72 2d 6e 75 6d 20 28 2b 20  -cluster-num (+ 
14c0: 63 75 72 72 2d 63 6c 75 73 74 65 72 2d 6e 75 6d  curr-cluster-num
14d0: 20 31 29 29 0a 20 20 20 20 20 28 77 69 74 68 2d   1)).     (with-
14e0: 69 6e 70 75 74 2d 66 72 6f 6d 2d 66 69 6c 65 20  input-from-file 
14f0: 66 6e 61 6d 65 0a 20 20 20 20 20 20 20 28 6c 61  fname.       (la
1500: 6d 62 64 61 20 28 29 0a 09 20 28 77 69 74 68 2d  mbda ().. (with-
1510: 6f 75 74 70 75 74 2d 74 6f 2d 70 6f 72 74 20 28  output-to-port (
1520: 63 75 72 72 65 6e 74 2d 65 72 72 6f 72 2d 70 6f  current-error-po
1530: 72 74 29 0a 09 20 20 20 28 6c 61 6d 62 64 61 20  rt)..   (lambda 
1540: 28 29 0a 09 20 20 20 20 20 28 70 72 69 6e 74 20  ()..     (print 
1550: 22 41 6e 61 6c 79 7a 69 6e 67 20 66 69 6c 65 20  "Analyzing file 
1560: 22 20 66 6e 61 6d 65 29 29 29 0a 09 20 28 70 72  " fname))).. (pr
1570: 69 6e 74 20 22 6c 61 62 65 6c 3d 5c 22 22 20 66  int "label=\"" f
1580: 6e 61 6d 65 20 22 5c 22 3b 22 29 0a 09 20 28 6c  name "\";").. (l
1590: 65 74 20 6c 6f 6f 70 20 28 28 69 6e 6c 20 20 20  et loop ((inl   
15a0: 20 28 72 65 61 64 2d 6c 69 6e 65 29 29 0a 09 09   (read-line))...
15b0: 20 20 20 20 28 66 6e 6e 61 6d 65 20 22 74 6f 70      (fnname "top
15c0: 6c 65 76 65 6c 22 29 0a 09 09 20 20 20 20 28 61  level")...    (a
15d0: 6c 6c 63 61 6c 6c 73 20 27 28 29 29 29 0a 09 20  llcalls '())).. 
15e0: 20 20 28 69 66 20 28 65 6f 66 2d 6f 62 6a 65 63    (if (eof-objec
15f0: 74 3f 20 69 6e 6c 29 0a 09 20 20 20 20 20 20 20  t? inl)..       
1600: 28 62 65 67 69 6e 0a 09 09 20 28 73 65 74 21 20  (begin... (set! 
1610: 66 75 6e 63 74 69 6f 6e 2d 63 61 6c 6c 73 20 28  function-calls (
1620: 63 6f 6e 73 20 28 6c 69 73 74 20 66 6e 6e 61 6d  cons (list fnnam
1630: 65 20 61 6c 6c 63 61 6c 6c 73 29 20 66 75 6e 63  e allcalls) func
1640: 74 69 6f 6e 2d 63 61 6c 6c 73 29 29 0a 09 09 20  tion-calls))... 
1650: 28 66 6f 72 2d 65 61 63 68 20 0a 09 09 20 20 28  (for-each ...  (
1660: 6c 61 6d 62 64 61 20 28 63 61 6c 6c 2d 6e 61 6d  lambda (call-nam
1670: 65 29 0a 09 09 20 20 20 20 28 68 61 73 68 2d 74  e)...    (hash-t
1680: 61 62 6c 65 2d 73 65 74 21 20 62 72 65 61 64 63  able-set! breadc
1690: 72 75 6d 62 73 20 63 61 6c 6c 2d 6e 61 6d 65 20  rumbs call-name 
16a0: 23 74 29 29 0a 09 09 20 20 61 6c 6c 63 61 6c 6c  #t))...  allcall
16b0: 73 29 0a 09 09 20 28 70 72 69 6e 74 2d 65 72 72  s)... (print-err
16c0: 20 22 66 75 6e 63 74 69 6f 6e 3a 20 22 20 66 6e   "function: " fn
16d0: 6e 61 6d 65 20 22 20 61 6c 6c 63 61 6c 6c 73 3a  name " allcalls:
16e0: 20 22 20 61 6c 6c 63 61 6c 6c 73 29 29 0a 09 20   " allcalls)).. 
16f0: 20 20 20 20 20 20 28 6c 65 74 20 28 28 6d 61 74        (let ((mat
1700: 63 68 20 28 73 74 72 69 6e 67 2d 6d 61 74 63 68  ch (string-match
1710: 20 64 65 66 6e 2d 72 78 20 69 6e 6c 29 29 29 0a   defn-rx inl))).
1720: 09 09 20 28 69 66 20 6d 61 74 63 68 0a 09 09 20  .. (if match... 
1730: 20 20 20 20 28 6c 65 74 20 28 28 66 75 6e 63 2d      (let ((func-
1740: 6e 61 6d 65 20 28 63 61 64 72 20 6d 61 74 63 68  name (cadr match
1750: 29 29 29 0a 09 09 20 20 20 20 20 20 20 28 69 66  )))...       (if
1760: 20 6c 61 73 74 2d 66 75 6e 63 0a 09 09 09 20 20   last-func....  
1770: 20 28 70 72 69 6e 74 20 22 5c 22 22 20 66 75 6e   (print "\"" fun
1780: 63 2d 6e 61 6d 65 20 22 5c 22 20 2d 3e 20 5c 22  c-name "\" -> \"
1790: 22 20 6c 61 73 74 2d 66 75 6e 63 20 22 5c 22 3b  " last-func "\";
17a0: 22 29 0a 09 09 09 20 20 20 28 70 72 69 6e 74 20  ")....   (print 
17b0: 22 5c 22 22 20 66 75 6e 63 2d 6e 61 6d 65 20 22  "\"" func-name "
17c0: 5c 22 3b 22 29 29 0a 09 09 20 20 20 20 20 20 20  \";"))...       
17d0: 28 73 65 74 21 20 6c 61 73 74 2d 66 75 6e 63 20  (set! last-func 
17e0: 66 75 6e 63 2d 6e 61 6d 65 29 0a 09 09 20 20 20  func-name)...   
17f0: 20 20 20 20 28 68 61 73 68 2d 74 61 62 6c 65 2d      (hash-table-
1800: 73 65 74 21 20 62 72 65 61 64 63 72 75 6d 62 73  set! breadcrumbs
1810: 20 66 75 6e 63 2d 6e 61 6d 65 20 23 74 29 0a 09   func-name #t)..
1820: 09 20 20 20 20 20 20 20 28 6c 6f 6f 70 20 28 72  .       (loop (r
1830: 65 61 64 2d 6c 69 6e 65 29 0a 09 09 09 20 20 20  ead-line)....   
1840: 20 20 66 75 6e 63 2d 6e 61 6d 65 0a 09 09 09 20    func-name.... 
1850: 20 20 20 20 61 6c 6c 63 61 6c 6c 73 29 29 0a 09      allcalls))..
1860: 09 20 20 20 20 20 28 6c 65 74 20 28 28 63 61 6c  .     (let ((cal
1870: 6c 73 20 28 6c 6f 6f 6b 2d 66 6f 72 2d 61 6c 6c  ls (look-for-all
1880: 2d 63 61 6c 6c 73 20 69 6e 6c 20 66 6e 6e 61 6d  -calls inl fnnam
1890: 65 29 29 29 0a 09 09 20 20 20 20 20 20 20 28 6c  e)))...       (l
18a0: 6f 6f 70 20 28 72 65 61 64 2d 6c 69 6e 65 29 20  oop (read-line) 
18b0: 66 6e 6e 61 6d 65 20 28 61 70 70 65 6e 64 20 61  fnname (append a
18c0: 6c 6c 63 61 6c 6c 73 20 63 61 6c 6c 73 29 29 29  llcalls calls)))
18d0: 29 29 29 29 29 29 0a 20 20 20 20 20 28 70 72 69  )))))).     (pri
18e0: 6e 74 20 22 7d 22 29 29 29 0a 20 74 61 72 67 73  nt "}"))). targs
18f0: 29 0a 0a 28 70 72 69 6e 74 2d 65 72 72 20 22 62  )..(print-err "b
1900: 72 65 61 64 63 72 75 6d 62 73 3a 20 22 20 28 68  readcrumbs: " (h
1910: 61 73 68 2d 74 61 62 6c 65 2d 6b 65 79 73 20 62  ash-table-keys b
1920: 72 65 61 64 63 72 75 6d 62 73 29 29 0a 28 70 72  readcrumbs)).(pr
1930: 69 6e 74 2d 65 72 72 20 22 66 75 6e 63 74 69 6f  int-err "functio
1940: 6e 2d 63 61 6c 6c 73 3a 20 22 20 66 75 6e 63 74  n-calls: " funct
1950: 69 6f 6e 2d 63 61 6c 6c 73 29 0a 0a 28 66 6f 72  ion-calls)..(for
1960: 2d 65 61 63 68 20 0a 20 28 6c 61 6d 62 64 61 20  -each . (lambda 
1970: 28 66 75 6e 63 74 69 6f 6e 2d 63 61 6c 6c 29 0a  (function-call).
1980: 20 20 20 28 70 72 69 6e 74 2d 65 72 72 20 22 66     (print-err "f
1990: 75 6e 63 74 69 6f 6e 2d 63 61 6c 6c 3a 20 22 20  unction-call: " 
19a0: 66 75 6e 63 74 69 6f 6e 2d 63 61 6c 6c 29 0a 20  function-call). 
19b0: 20 20 28 6c 65 74 20 28 28 66 6e 6e 61 6d 65 20    (let ((fnname 
19c0: 28 63 61 72 20 66 75 6e 63 74 69 6f 6e 2d 63 61  (car function-ca
19d0: 6c 6c 29 29 0a 09 20 28 63 61 6c 6c 73 20 20 28  ll)).. (calls  (
19e0: 63 61 64 72 20 66 75 6e 63 74 69 6f 6e 2d 63 61  cadr function-ca
19f0: 6c 6c 29 29 29 0a 20 20 20 20 20 28 66 6f 72 2d  ll))).     (for-
1a00: 65 61 63 68 0a 20 20 20 20 20 20 28 6c 61 6d 62  each.      (lamb
1a10: 64 61 20 28 63 61 6c 6c 6e 61 6d 65 29 0a 09 28  da (callname)..(
1a20: 70 72 69 6e 74 20 28 69 66 20 28 68 61 73 68 2d  print (if (hash-
1a30: 74 61 62 6c 65 2d 72 65 66 2f 64 65 66 61 75 6c  table-ref/defaul
1a40: 74 20 62 72 65 61 64 63 72 75 6d 62 73 20 63 61  t breadcrumbs ca
1a50: 6c 6c 6e 61 6d 65 20 23 66 29 20 22 22 20 22 2f  llname #f) "" "/
1a60: 2f 20 22 29 0a 09 20 20 20 20 20 20 20 22 5c 22  / ")..       "\"
1a70: 22 20 66 6e 6e 61 6d 65 20 22 5c 22 20 2d 3e 20  " fnname "\" -> 
1a80: 5c 22 22 20 63 61 6c 6c 6e 61 6d 65 20 22 5c 22  \"" callname "\"
1a90: 3b 22 29 29 0a 20 20 20 20 20 20 63 61 6c 6c 73  ;")).      calls
1aa0: 29 29 29 0a 20 66 75 6e 63 74 69 6f 6e 2d 63 61  ))). function-ca
1ab0: 6c 6c 73 29 0a 0a 28 70 72 69 6e 74 20 22 7d 22  lls)..(print "}"
1ac0: 29 0a 0a 28 65 78 69 74 29 0a 29 0a              )..(exit).).