home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / beehive / program / curly.arc / CURLY.DOC < prev   
Encoding:
Text File  |  1990-11-03  |  2.1 KB  |  45 lines

  1.  
  2.                               Curly
  3.  
  4.                         For C programmers
  5.  
  6.      Thi≤ prograφ i≤ designeΣ t∩ hel≡ anybod∙ wh∩ doe≤ ß lo⌠ oµ ├ 
  7. debugging«á Iµá yo⌡á eve≥ suffe≥ tha⌠ annoyinτ littlσ probleφá oµ 
  8. unmatcheΣ curl∙ braces¼á thi≤ ma∙ help« ╔ go⌠ sicδ oµ printinτ m∙ 
  9. ├á program≤ anΣ markinτ al∞ thσ routine≤ encloseΣ b∙ eacΦ se⌠á oµ 
  10. matched curly braces so I wrote a program to do it for me.
  11.      A≤ i⌠ i≤ set¼á i⌠ wil∞ takσ u≡ t∩ 25░ linσ program≤ oµ line≤ 
  12. n∩á morσ thaε 8░ character≤ long«á Yo⌡ ma∙ als∩ havσá you≥á bracσ 
  13. nesting≤ g∩ abou⌠ 1░ deep« Al∞ thesσ constant≤ arσ defineΣ iε thσ 
  14. firs⌠ fe≈ line≤ oµ thσ prograφ s∩ (memor∙ permitting)¼á fee∞ freσ 
  15. to change them.
  16.      Thσá prin⌠á ou⌠ i≤ ver∙ simple«á Yo⌡ jus⌠ ge⌠ ß norma∞á dum≡ 
  17. excep⌠á tha⌠ ever∙ linσ i≤ pusheΣ acros≤ abou⌠ ╕ o≥ ╣á character≤ 
  18. (dependinτ oε ho≈ dee≡ you≥ bigges⌠ nestinτ is⌐ anΣ dowε thσ lef⌠ 
  19. hanΣá sidσá oµ thσ pape≥ yo⌡ ge⌠á somσá funn∙á characters«á Thesσ 
  20. consis⌠ oµ '+º anΣ '!'«á ┴ '+º tell≤ yo⌡ wherσ thσ curl∙ bracσ i≤ 
  21. and the '!' covers all the area in between.
  22.      Yo⌡á needn'⌠ bothe≥ abou⌠ brace≤ encloseΣ iε single¼á doublσ 
  23. quote≤á o≥ commen⌠ marker≤ ('/*º anΣ '*/')«á ╔ havσá alloweΣá fo≥ 
  24. them.
  25.      To start the program once it has been compiled, just type
  26.  
  27. A>curly filename1 filename2
  28.  
  29.      Thσá filename▒ doe≤ no⌠ neeΣ ß .π oε thσ enΣ bu⌠ iµ tha⌠á o≥ 
  30. anythinτ elsσ i≤ specified¼ i⌠ wil∞ bσ accepted« Filename▓ i≤ no⌠ 
  31. eveε necessary«á Iµ i⌠ i≤ no⌠ included¼ thσ adjusteΣ filσ wil∞ bσ 
  32. saveΣ a≤ filename▒ witΦ .CU╥ oε thσ end«á Iµ i⌠ i≤ included¼á thσ 
  33. filenamσ wil∞ bσ saveΣ a≤ i⌠ witΦ it≤ '.endingº o≥ .CU╥ iµ onσ i≤ 
  34. omitted.
  35.      Thσ appropriatσ erro≥ message≤ havσ beeε includeΣ fo≥á thosσ 
  36. oµá u≤á wh∩ tr∙ t∩ CURL┘ ß prograφ tha⌠ doesn'⌠ exis⌠ o≥ end≤á iε 
  37. .CU╥á bu⌠á iµá ßá prograφ exist≤ witΦá ßá filenamσá thσá samσá a≤ 
  38. filename▓ it will be overwritten.
  39.      Thi≤ versioε iε writteε fo≥ BD╙ ├ Versioε 1.╡ s∩ iµ yo⌡ havσ 
  40. another, you may have to do some adapting.
  41.  
  42.                          Happy debugging
  43.  
  44.                      Courtesy Michael Girle
  45.