home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-03-19 | 1.7 KB | 55 lines | [TEXT/R*ch] |
- ## © G. Sawitzki, StatLab Heidelberg 1992 <gs@statlab.uni-heidelberg.de>
- # This is a collection of snippets to help working with MPW.
- # Summary:
- ## ife generate a Pascal if/else template. usage: ife <name>
- ## case generate a Pascal case template. usage: case <name>
- ## proc generate a Pascal procedure template. usage: proc <name>
- ## func generate a Pascal function template. usage: func <name> <type>
-
- ## mk generate a new file with a Pascal template. usage [-prog | -tool | -unit] <name>
- # For details, see "README about mk"
-
- ## pp compile and link a pacal file. usage: pp <source>
-
- ## inform reformat Pascal source files, build abstracts, or build crossreference
- # Usage: inform [options] ([target window] | [-from file] [-to file]
- # For details, see "README About MPW InForm".
-
- # To get a first impression, make sure that the snippets directory is in your command
- # path, or install the snippets in your MPW directories.
- # Select any of the following command lines and press enter.
- #####################################################################################
- # The following four commands will modify thenselves
-
- ife some condition
-
- case my_selector
-
- proc MySuperProcedure
-
- func MySuperFunction integer
-
- # This line will generate a new file and emit an new command line:
-
- mk -tool mynewtool
-
- mk -prog testprog
-
- # use this line to compile and link a program:
-
- pp testprog
-
- ## to try inform, first install a menu command with
- AddMenu edit 'InForm/I' 'InForm "{active}"'
- ## select the following lines and then choose InForm from the Edit menu
- {this is a program fragment}
- begin
- if a<b then
- begin
- doa; {used cut and paste, and nothing is aligned}
- dob;
- end
- else
- end; {not even correct }
- end;
- ######################