Makefile::Parser 0.11
Sponsored Links
Makefile::Parser 0.11 Ranking & Summary
File size:
0.018 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1103
Date added:
2006-10-24
Publisher:
Agent Zhang
Makefile::Parser 0.11 description
Makefile::Parser is a Simple Parser for Makefiles.
SYNOPSIS
use Makefile::Parser;
$parser = Makefile::Parser->new;
# Equivalent to ->parse(Makefile);
$parser->parse or
die Makefile::Parser->error;
# Get last value assigned to the specified variable CC:
print $parser->var(CC);
# Get all the variable names defined in the Makefile:
@vars = $parser->vars;
print join( , sort @vars);
@roots = $parser->roots; # Get all the "root targets"
print $roots[0]->name;
@tars = $parser->targets; # Get all the targets
$tar = join("n", $tars[0]->commands);
# Get the default target, say, the first target defined in Makefile:
$tar = $parser->target;
$tar = $parser->target(install);
# Get the name of the target, say, install here:
print $tar->name;
# Get the dependencies for the target install:
@depends = $tar->depends;
# Access the shell command used to build the current target.
@cmds = $tar->commands;
# Parse another file using the same Parser object:
$parser->parse(Makefile.old) or
die Makefile::Parser->error;
# Get the target who is specified by variable EXE_FILE
$tar = $parser->target($parser->var(EXE_FILE));
This is a parser for Makefiles. At this very early stage, the parser only supports a limited set of features, so it may not recognize some advanced features provided by certain make tools like GNU make. Its initial purpose is to provide basic support for another module named Makefile::GraphViz, which is aimed to render the building process specified by a Makefile using the amazing GraphViz library. The Make module is not satisfactory for this purpose, so I decided to build one of my own.
SYNOPSIS
use Makefile::Parser;
$parser = Makefile::Parser->new;
# Equivalent to ->parse(Makefile);
$parser->parse or
die Makefile::Parser->error;
# Get last value assigned to the specified variable CC:
print $parser->var(CC);
# Get all the variable names defined in the Makefile:
@vars = $parser->vars;
print join( , sort @vars);
@roots = $parser->roots; # Get all the "root targets"
print $roots[0]->name;
@tars = $parser->targets; # Get all the targets
$tar = join("n", $tars[0]->commands);
# Get the default target, say, the first target defined in Makefile:
$tar = $parser->target;
$tar = $parser->target(install);
# Get the name of the target, say, install here:
print $tar->name;
# Get the dependencies for the target install:
@depends = $tar->depends;
# Access the shell command used to build the current target.
@cmds = $tar->commands;
# Parse another file using the same Parser object:
$parser->parse(Makefile.old) or
die Makefile::Parser->error;
# Get the target who is specified by variable EXE_FILE
$tar = $parser->target($parser->var(EXE_FILE));
This is a parser for Makefiles. At this very early stage, the parser only supports a limited set of features, so it may not recognize some advanced features provided by certain make tools like GNU make. Its initial purpose is to provide basic support for another module named Makefile::GraphViz, which is aimed to render the building process specified by a Makefile using the amazing GraphViz library. The Make module is not satisfactory for this purpose, so I decided to build one of my own.
Makefile::Parser 0.11 Screenshot
Makefile::Parser 0.11 Keywords
Simple Parser
Parser 0.11
target
parser
makefiles
tar
simple
print
Makefile::Parser
MakefileParser
Makefile::Parser 0.11
Libraries
Programming
Bookmark Makefile::Parser 0.11
Makefile::Parser 0.11 Copyright
WareSeeker periodically updates pricing and software information of Makefile::Parser 0.11 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Makefile::Parser 0.11 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
target store
target stores
targets
target online store
target locations
target department store
target coupons
parser error message
target baby registry
target catalogue
xml parser
target furniture
target pharmacy
target com
parser error message could not load type
target store locator
target bridal registry
ffxi parser
Related Software
Audio::Cuefile::Parser is a Perl module for audio cuefile parser. Free Download
RDF::Simple::Parser is a simple RDF/XML parser that reads a string containing RDF in XML. Free Download
PandaLex PDF Parser is a flex and bison parser for PDF documents. Free Download
Bakefile is cross-platform, cross-compiler generator of native makefiles. Free Download
XML::Bare is a minimal XML parser implemented via a C state engine. Free Download
Shell::Parser is a simple shell script parser. Free Download
GEMpire is a turn based multiplayer strategy game in Java. Free Download
Test::Parser is a collection of parsers for different test output file formats. Free Download
Latest Software
Popular Software
Favourite Software