Class: Rscons::Builders::Lex
- Inherits:
-
Rscons::Builder
- Object
- Rscons::Builder
- Rscons::Builders::Lex
- Defined in:
- lib/rscons/builders/lex.rb
Overview
Build a source file given a lex input file.
- Examples
-
env.Lex(“lex.c”, “parser.l”) env.Lex(“lex.cc”, “parser.ll”)
Instance Attribute Summary
Attributes inherited from Rscons::Builder
#build_step, #cache, #env, #preferred_ld, #side_effects, #sources, #target, #vars
Instance Method Summary collapse
-
#run(options) ⇒ Object
Run the builder to produce a build target.
Methods inherited from Rscons::Builder
#depends, extra_path, #finalize_command, #initialize, name, #name, #print_run_message, #produces, #register_command, #standard_command, #wait_for
Constructor Details
This class inherits a constructor from Rscons::Builder
Instance Method Details
#run(options) ⇒ Object
Run the builder to produce a build target.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/rscons/builders/lex.rb', line 11 def run() if @command finalize_command else @vars["_TARGET"] = @target @vars["_SOURCES"] = @sources command = @env.build_command("${LEX_CMD}", @vars) standard_command("Generating lexer source from <source>#{Util.short_format_paths(@sources)}<reset> => <target>#{@target}<reset>", command) end end |