Ninja
Public Types | Public Member Functions | Public Attributes
EvalString Struct Reference

A tokenized string that contains variable references. More...

#include <eval_env.h>

List of all members.

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_

Detailed Description

A tokenized string that contains variable references.

Can be evaluated relative to an Env.

Definition at line 43 of file eval_env.h.


Member Typedef Documentation

typedef vector<pair<string, TokenType> > EvalString::TokenList

Definition at line 52 of file eval_env.h.


Member Enumeration Documentation

Enumerator:
RAW 
SPECIAL 

Definition at line 51 of file eval_env.h.


Member Function Documentation

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
bool EvalString::Parse ( const string &  input,
string *  err,
size_t *  err_index = NULL 
)
const string& EvalString::unparsed ( ) const [inline]

Definition at line 47 of file eval_env.h.

Referenced by ManifestParser::ParseRule().


Member Data Documentation

Definition at line 53 of file eval_env.h.

Referenced by Evaluate(), and Parse().

Definition at line 50 of file eval_env.h.

Referenced by Parse().


The documentation for this struct was generated from the following files: