|
Ninja
|
A tokenized string that contains variable references. More...
#include <eval_env.h>
Public Types | |
| typedef vector< pair< string, TokenType > > | TokenList |
| enum | TokenType { RAW, SPECIAL } |
Public Member Functions | |
| const bool | empty () const |
| string | Evaluate (Env *env) const |
| bool | Parse (const string &input, string *err, size_t *err_index=NULL) |
| const string & | unparsed () const |
Public Attributes | |
| TokenList | parsed_ |
| string | unparsed_ |
A tokenized string that contains variable references.
Can be evaluated relative to an Env.
Definition at line 43 of file eval_env.h.
| typedef vector<pair<string, TokenType> > EvalString::TokenList |
Definition at line 52 of file eval_env.h.
Definition at line 51 of file eval_env.h.
| const bool EvalString::empty | ( | ) | const [inline] |
Definition at line 48 of file eval_env.h.
Referenced by Edge::RecomputeDirty().
| string EvalString::Evaluate | ( | Env * | env | ) | const |
Definition at line 85 of file eval_env.cc.
References Env::LookupVariable(), parsed_, and RAW.
Referenced by Edge::EvaluateCommand(), Edge::GetDescription(), Edge::LoadDepFile(), ManifestParser::ParseDefaults(), ManifestParser::ParseEdge(), and ManifestParser::ParseLet().
| bool EvalString::Parse | ( | const string & | input, |
| string * | err, | ||
| size_t * | err_index = NULL |
||
| ) |
Definition at line 30 of file eval_env.cc.
References parsed_, RAW, SPECIAL, and unparsed_.
Referenced by ManifestParser::ParseDefaults(), ManifestParser::ParseEdge(), and ManifestParser::ParseLetValue().
| const string& EvalString::unparsed | ( | ) | const [inline] |
Definition at line 47 of file eval_env.h.
Referenced by ManifestParser::ParseRule().
Definition at line 53 of file eval_env.h.
Referenced by Evaluate(), and Parse().
| string EvalString::unparsed_ |
Definition at line 50 of file eval_env.h.
Referenced by Parse().
1.7.5.1