L Compiler Reference

 


 


L Compiler Usage

Command Line Interface

The L Compiler parses an L program and generates C++ code that implements that program. The general command-line form is:

LC [options] inputFileName

Command Line Options

The supported options are listed below, and may be specified in any order.

Option
Purpose
-d name=value
Defines compiler variable name to have the specified value.
-eu
Makes using an unknown variable name an error. By default, this is only a warning.
-h
Prints a help message summarizing the command-line options.
-i dir
Adds dir to the list of directories that will be searched to find templates when processing include and reinclude statements.
-li n
Specifies how many spaces to indent the #line directives in the output C++ file. The default is 60.
-nl
Suppresses #line directives in the output C++ file. This option can be useful if you wish to debug the L program at the C++ level instead of at the L source level.
-nc
Stops the compiler from including the common.t file before compiling the L file you specifiy.
-ns
Suppresses source code lines in the output C++ file. Normally, the C++ file is annotated with the original L source in commented-out form.
-o outputFileName
Outputs the C++ code to the specified file. By default, code is sent to inputFileName with the extension replaced by .cpp.
-si n
Specifies how many spaces to indent the source code line comments in the output C++ file. The default is 40.