15 #ifndef NINJA_MANIFEST_PARSER_H_ 16 #define NINJA_MANIFEST_PARSER_H_ 47 bool ParseTest(
const std::string& input, std::string* err) {
49 return Parse(
"input", input, err);
54 bool Parse(
const std::string& filename,
const std::string& input,
72 #endif // NINJA_MANIFEST_PARSER_H_ bool ParseEdge(std::string *err)
PhonyCycleAction phony_cycle_action_
ManifestParser(State *state, FileReader *file_reader, ManifestParserOptions options=ManifestParserOptions())
bool Parse(const std::string &filename, const std::string &input, std::string *err)
Parse a file, given its contents as a string.
bool ParsePool(std::string *err)
Parse various statement types.
bool ParseLet(std::string *key, EvalString *val, std::string *err)
An Env which contains a mapping of variables to values as well as a pointer to a parent scope...
bool ParseRule(std::string *err)
bool ParseFileInclude(bool new_scope, std::string *err)
Parse either a 'subninja' or 'include' line.
bool ParseDefault(std::string *err)
bool ParseTest(const std::string &input, std::string *err)
Parse a text string of input. Used by tests.
ManifestParserOptions options_
Global state (file status) for a single run.
A tokenized string that contains variable references.
DupeEdgeAction dupe_edge_action_
Interface for reading files from disk.