15 #ifndef NINJA_MANIFEST_PARSER_H_ 16 #define NINJA_MANIFEST_PARSER_H_ 53 bool Load(
const string& filename,
string* err,
Lexer* parent = NULL);
58 return Parse(
"input", input, err);
63 bool Parse(
const string& filename,
const string& input,
string* err);
66 bool ParsePool(
string* err);
67 bool ParseRule(
string* err);
68 bool ParseLet(
string* key,
EvalString* val,
string* err);
69 bool ParseEdge(
string* err);
70 bool ParseDefault(
string* err);
73 bool ParseFileInclude(
bool new_scope,
string* err);
87 #endif // NINJA_MANIFEST_PARSER_H_
PhonyCycleAction phony_cycle_action_
An Env which contains a mapping of variables to values as well as a pointer to a parent scope...
ManifestParserOptions options_
Global state (file status) for a single run.
FileReader * file_reader_
A tokenized string that contains variable references.
DupeEdgeAction dupe_edge_action_
bool ParseTest(const string &input, string *err)
Parse a text string of input. Used by tests.
Interface for reading files from disk.