άάάάάάάάάάάάάά Ϋ BP7SB 1.00 Ϋ ίίίίίίίίίίίίίί BP7SB 1.00 is a Source Beautifier for Turbo / Borland Pascal sources. (up to Version 7.0) Use it only on your own risk! Please report all bugs and comments to the author: Jozsef Ferincz Bleibtreustr. 32 D-1000 Berlin 15 Germany Phone: +49 30 8835822 E-Mail: ferincz@chemie.fu-berlin.de ferincz@fub.uucp ΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝ Introduction ΔΔΔΔΔΔΔΔΔΔΔΔ BP7SB is a useful tool with many options to format Pascal code in a consistent form. BP7SB uses default values to reformat the source code, but with the options you can develop some other shape. It makes your code OPTICALLY beautiful. BP7SB - if you want - makes keyword conversion (lower, mixed, upper case or according to your own pattern). BP7SB - if you want - structures loops. BP7SB - if you want - arranges record and object structures. BP7SB - if you want - sets the length of source code line. BP7SB - if you want - inserts space characters to make your source code better readable. But BP7SB does not check for syntax errors. The original source file will be saved as a *.BAK backup file. You don't use .BAK, .COM, .DLL, .EXE, .OBJ, .RES, .TPP, .TPU or .TPW files as input. If you don't use extension after the input file name, .PAS will be added. Standard wildcards may be used. BP7SB 1.00 recognizes following builtin keywords: 739 functions 197 procedures 62 reserved words 93 types 409 variables and constants ΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝ Using BP7SB Optionen ΔΔΔΔΔΔΔΔΔΔΔΔΔΔΔΔΔΔΔΔ Syntax: BP7SB [options] source[.PAS] options are: -a : about BP7SB -b: : (one of them) show builtin functions or procedures or reserved words or types or variables -c:file : get options from a file, separators are all options are allowed except -a, -b: and -c:file -d:n : n=depth of loops, default=2, max=10, n=0 => no structuring loops -f: : builtin functions in upper or lower case, default is mixed case -k : keep source compact -o:file : file=collection of own words, length of words 1-26 character(s) contents of line from # ignored, builtin words will be overwritten -p: : buitlin procedures in upper or lower case, default is mixed case -r: : builtin reserved words in upper or lower case, default is mixed case -s:m : m=length of line in the source, default(max)=255, min=40 -t: : builtin types in upper or lower case, default is mixed case -v: : builtin variables, constants in upper or lower case, def. is mixed -w : no converting builtin keywords -y:z : z=position of lines beginning with { or (*, default is structured The order of arguments is not significant. The arguments are not case sensitive. If you use -a or -b: options, you will get your information on a standard output and after that the program terminates also if you use other command options. Command options followed by : (colon) must have ONE parameter, which will follow immediatelly after the option with no space. < > (angle brackets) give you a possible list of option parameters which must be present. Comments in { } or in (* *) and strings in ' ' or " " will not alter. Options: ΔΔΔΔΔΔΔΔ -a Gives you a short info about BP7SB. -b: Puts the builtin keywords to a standard output. The keyword groups are: f-functions, p-procedures, r-reserved words, t-types, v-variables and constants. If you will see more than one keyword group, you may use this option several times. The following exmple gives you all builtin keywords: BP7SB -b:f -b:p -b:r -b:t -b:v | more -c:file Like a configurations file. You may save the frequently used options in a file. You may use the options also in several lines. The contents of line ignored from a # character. The separator of options are the space, end of line and end of file characters. The options saved in the file may updated by a command line. You may save all options in the file except -a, -b: and -c:file options. If the file isn't in the active directory, you should use the complete path. If myoptions.cfg is: -d:3 -f:u #-y:5 -y:6 -r:u You may use: BP7SB -c:myoptions.cfg -y:1 mysource.pas -d:n Switch structuring off or set the depth of stuctures. Allowed values of n are between 0 and 10. Default value of n is 2. If n is 0, the source code will be not structured, the original structure will be kept. BP7SB -d:3 mysource.pas -: Switch case of builtin keywords. Default is mixed case: WriteLn. In u-upper case: WRITELN, in l-lower case writeln. BP7SB -r:u -t:l -v:u mysource.pas -k keep source compact If you use this option, the BP7SB will not insert space characters, will not structure record and object definitions. If mysource.pas looks like: type Date=record D, M, Y:Integer; end; ... if(a