5 Copyright The SCons Foundation
7 Permission is hereby granted, free of charge, to any person obtaining
8 a copy of this software and associated documentation files (the
9 "Software"), to deal in the Software without restriction, including
10 without limitation the rights to use, copy, modify, merge, publish,
11 distribute, sublicense, and/or sell copies of the Software, and to
12 permit persons to whom the Software is furnished to do so, subject to
13 the following conditions:
15 The above copyright notice and this permission notice shall be included
16 in all copies or substantial portions of the Software.
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
19 KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
20 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 This file is processed by the bin/SConsDoc.py module.
28 See its __doc__ string for a discussion of the format.
32 <!ENTITY % scons SYSTEM '../../doc/scons.mod'>
34 <!ENTITY % builders-mod SYSTEM '../../doc/generated/builders.mod'>
36 <!ENTITY % functions-mod SYSTEM '../../doc/generated/functions.mod'>
38 <!ENTITY % tools-mod SYSTEM '../../doc/generated/tools.mod'>
40 <!ENTITY % variables-mod SYSTEM '../../doc/generated/variables.mod'>
44 <sconsdoc xmlns="http://www.scons.org/dbxsd/v1.0"
45 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
46 xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">
51 Sets construction variables for the &lex; lexical analyser.
58 <item>LEXUNISTD</item>
61 <item>LEXCOMSTR</item>
63 <item>LEX_HEADER_FILE</item>
64 <item>LEX_TABLES_FILE</item>
71 The lexical analyzer generator.
79 The command line used to call the lexical analyzer generator
80 to generate a source file.
85 <cvar name="LEXCOMSTR">
88 The string displayed when generating a source file
89 using the lexical analyzer generator.
90 If this is not set, then &cv-link-LEXCOM; (the command line) is displayed.
94 env = Environment(LEXCOMSTR="Lex'ing $TARGET from $SOURCES")
99 <cvar name="LEXFLAGS">
102 General options passed to the lexical analyzer generator.
103 In addition to passing the value on during invocation,
104 the &t-link-lex; tool also examines this &consvar; for options
105 which cause additional output files to be generated,
106 and adds those to the target list.
107 Recognized for this purpose are GNU &flex; options
108 <option>--header-file=</option> and
109 <option>--tables-file=</option>;
110 the output file is named by the option argument.
113 Note that files specified by <option>--header-file=</option> and
114 <option>--tables-file=</option> may not be properly handled
115 by &SCons; in all situations. Consider using
116 &cv-link-LEX_HEADER_FILE; and &cv-link-LEX_TABLES_FILE; instead.
121 <cvar name="LEX_HEADER_FILE">
124 If supplied, generate a C header file with the name taken from this variable.
125 Will be emitted as a <option>--header-file=</option>
126 command-line option. Use this in preference to including
127 <option>--header-file=</option> in &cv-link-LEXFLAGS; directly.
132 <cvar name="LEX_TABLES_FILE">
135 If supplied, write the lex tables to a file with the name
136 taken from this variable.
137 Will be emitted as a <option>--tables-file=</option>
138 command-line option. Use this in preference to including
139 <option>--tables-file=</option> in &cv-link-LEXFLAGS; directly.
144 <cvar name="LEXUNISTD">
147 Used only on windows environments to set a lex flag to prevent 'unistd.h' from being included. The default value is '--nounistd'.