#include <ctime>
#include <iostream>
#include <istream>
#include <ostream>
#include <sstream>
#include <string>
#include <utility>
#include "artifact.hpp"
#include "depgraph.hpp"
#include "variables.hpp"
Go to the source code of this file.
Functions | |
artifact & | lookup_artifact (std::string const &name) |
Lookup an artifact in the parse map. | |
void | parse_graph (std::istream &in, dependency_graph &graph) |
int | main () |
Variables | |
std::map < std::string, artifact > | artifacts |
Store all artifacts here as they are read. |
Definition in file fakemake.cpp.
void parse_graph | ( | std::istream & | in, | |
dependency_graph & | graph | |||
) |
Parse the fakemakefile, building a dependency graph.
[in] | in | The input stream |
[out] | graph | The dependency graph to build |
Definition at line 34 of file fakemake.cpp.
References artifacts, artifact::expand(), expand(), global_variables, lookup_artifact(), dependency_graph::store_dependency(), and artifact::store_variable().
Referenced by main().
Store all artifacts here as they are read.
Listing 60-9. Rewriting the Program to Use the New artifact Value Class
Definition at line 16 of file fakemake.cpp.
Referenced by lookup_artifact(), and parse_graph().