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,
47 #endif // NINJA_DYNDEP_PARSER_H_ Store data loaded from one dyndep file.
bool Parse(const std::string &filename, const std::string &input, std::string *err)
Parse a file, given its contents as a string.
bool ParseEdge(std::string *err)
DyndepParser(State *state, FileReader *file_reader, DyndepFile *dyndep_file)
An Env which contains a mapping of variables to values as well as a pointer to a parent scope...
bool ParseTest(const std::string &input, std::string *err)
Parse a text string of input. Used by tests.
bool ParseDyndepVersion(std::string *err)
DyndepFile * dyndep_file_
bool ParseLet(std::string *key, EvalString *val, std::string *err)
Global state (file status) for a single run.
A tokenized string that contains variable references.
Interface for reading files from disk.