bbjcpl - BBj Compiler
Syntax
bbjcpl [-x<ext> | -X] [-d<directory>] [-e<errorlog>]
[-t [-P<prefix>|-c<configFile>] [-W]]
[-r] [-n] [-D] [-s#] [-i#] [--renum] [-p<password>] [-R] [-N] [-F]
[-CP<classpath>] [--verbose]
[-@<filelist>] <file1> <file2> ...
Description
The bbjcpl utility is a program that can compile input as BBj code, outputting updated files or useful analytics. It can process different types of input, including text files, PRO/5 or Visual PRO/5 tokenized code, and BBj tokenized code. It can perform many functions with this input, including converting it to tokenized BBj program files, performing static type checking, checking for syntax errors, removing line numbers, and renumbering files. Because the BBj compiler is more strict than the PRO/5 and Visual PRO/5 compilers, this utility can be used to find syntax errors in PRO/5 and Visual PRO/5 code.
The bbjcpl utility can be used as a
pipe (read from stdin, write to stdout). In this mode, any specified type-checking
options are ignored.
On Windows, the bbjcplw utility is the same as the bbjcpl utility, but does not create a console window
|
Parameter |
Description |
BBj Version |
|---|---|---|
|
-? |
Prints a usage summary. |
|
|
-@<filelist> |
Reads files names from the filelist file, which is a list of filenames delimited by line terminators (line feed, carriage return, or carriage return/line feed). |
BBj 5.00 |
|
-c<configFile> |
Specifies the configuration file that the static type checker can use. Programs
that use custom objects will often contain The static type checker will use the prefix list contained
in the In
BBj 17.00 and higher, The The |
|
|
-CP<classpath> |
This option causes If this option is not set, |
BBj 10.00 |
|
-D |
Removes line numbers from the program. If there are statements within the program that reference line numbers, labels will be inserted at the appropriate places. |
BBj 6.00 |
|
-d<directory> |
Name of the directory in which to place the output files. If this switch is used, the output files will have exactly the same names as the input files. I=SCALL("bbjcpl –d/home/bbj file1 file2 file3") |
|
|
-e<errorlog> |
Writes the error output into the specified errorlog file. |
|
|
-F |
If writing the output file would overwrite
the source file, |
BBj 7.00 |
|
files |
File(s) to be compiled (BBj program files, PRO/5 program files, Visual PRO/5 program files, or text files).
|
|
|
-i<interval> |
Specifies the increment interval to be used when assigning line numbers to programs that do not already have line numbers. The default value is 10. |
|
|
-n |
Renumbers
the generated program. If the source file does not include line
numbers, See also |
|
|
-N |
Prevents writing
out any files. This can be used to check for errors and warnings
from the command line without generating any code. See |
BBj 7.00 |
|
-p<password> |
Generates a protected program, equivalent to saving the program
using SAVEP. If the optional password
is specified, |
BBj 11.00 |
|
-P<prefix> |
Specifies a prefix to use. Programs
that use custom objects will often contain USE statements that
tell the program where to find the definitions of custom objects
defined in other files. At runtime, BBj applies the standard prefix
algorithm to the filenames in these USE statements in order to
resolve the names to files on disk. When using Using the The The |
|
|
-R |
Use
recursion when a directory is specified to compile each file found
in the specific directory and subdirectories. If used in conjunction
with the bbjcpl –R –d/usr/BBx/compiled /usr/BBx/listings |
|
|
-r |
Removes all REM statements. |
|
|
--renum |
Causes the renumbering options ( |
BBj 19.01 |
|
-s<line #> |
Specifies
a starting line number to use when assigning line numbers to programs
that do not have line numbers. The default value is either 10
or the increment value assigned by the |
|
|
-t |
Enables
static type checking. After Perform just a type check by combining the
options |
|
|
--verbose |
Prints debugging information that may be useful in reporting issues to BASIS. |
BBj 10.00 |
|
-W |
Enables
warnings about undeclared code, and must be used in conjunction
with the After compiling the given programs and generating a list
of all programs containing type check errors, |
|
|
-x<extension> |
Appends the specified extension to the file names. |
|
|
-X |
Keeps the extension of the input files. This allows using the same name for both input and output files, which allows running from either source or compiled versions of files. |
BBj 7.00 |
Example
The following compiles four files to be named file1.bbj,
file2.bbj, file3.bbj,
and file4.bbj:
LET I=SCALL("bbjcpl file1 file2 file3 file4")
Diagnostics
All error messages contain both the BBj line number and the ASCII file
line number. In addition to normal syntax errors, bbjcpl
will issue error messages for duplicate labels and duplicate DEF FN names.
All error messages are written to stderr.