home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Pascal / Utilities / Snippets / MPWSnippets.README < prev    next >
Encoding:
Text File  |  1994-03-19  |  1.7 KB  |  55 lines  |  [TEXT/R*ch]

  1. ## © G. Sawitzki, StatLab Heidelberg 1992 <gs@statlab.uni-heidelberg.de>
  2. # This is a collection of snippets to help working with MPW.
  3. # Summary:
  4. ## ife        generate a Pascal if/else template. usage: ife <name>
  5. ## case        generate a Pascal case template. usage: case <name>
  6. ## proc        generate a Pascal procedure template. usage: proc <name>
  7. ## func        generate a Pascal function template. usage: func <name> <type>
  8.  
  9. ## mk        generate a new file with a Pascal template. usage [-prog | -tool | -unit] <name>
  10. #            For details, see "README about mk"
  11.             
  12. ## pp        compile and link a pacal file. usage: pp <source>
  13.  
  14. ## inform    reformat Pascal source files, build abstracts, or build crossreference 
  15. #            Usage: inform [options] ([target window] | [-from file] [-to file]
  16. #            For details, see "README About MPW InForm".
  17.  
  18. # To get a first impression, make sure that the snippets directory is in your command
  19. # path, or install the snippets in your MPW directories.
  20. # Select any of the following command lines and press enter.
  21. #####################################################################################
  22. # The following four commands will modify thenselves
  23.  
  24. ife some condition
  25.  
  26. case my_selector
  27.  
  28. proc MySuperProcedure
  29.  
  30. func MySuperFunction integer
  31.  
  32. # This line will generate a new file and emit an new command line:
  33.  
  34. mk -tool mynewtool
  35.  
  36. mk -prog testprog
  37.  
  38. # use this line to compile and link a program:
  39.  
  40. pp testprog
  41.  
  42. ## to try inform, first install a menu command with
  43.         AddMenu edit 'InForm/I' 'InForm "{active}"'
  44. ## select the following lines and then choose InForm from the Edit menu
  45. {this is a program fragment}
  46.         begin
  47.     if a<b then
  48.                  begin 
  49.             doa;   {used cut and paste, and nothing is aligned}
  50.                 dob; 
  51.                 end
  52.                 else
  53.                 end; {not even correct }
  54.                  end;
  55. ######################