15 #ifndef NINJA_DYNDEP_PARSER_H_
16 #define NINJA_DYNDEP_PARSER_H_
30 bool ParseTest(
const std::string& input, std::string* err) {
31 return Parse(
"input", input, err);
36 bool Parse(
const std::string& filename,
const std::string& input,
An Env which contains a mapping of variables to values as well as a pointer to a parent scope.
Store data loaded from one dyndep file.
bool ParseTest(const std::string &input, std::string *err)
Parse a text string of input. Used by tests.
bool ParseEdge(std::string *err)
bool ParseLet(std::string *key, EvalString *val, std::string *err)
DyndepFile * dyndep_file_
bool ParseDyndepVersion(std::string *err)
bool Parse(const std::string &filename, const std::string &input, std::string *err)
Parse a file, given its contents as a string.
DyndepParser(State *state, FileReader *file_reader, DyndepFile *dyndep_file)
A tokenized string that contains variable references.
Interface for reading files from disk.
Global state (file status) for a single run.