summaryrefslogtreecommitdiffstats
path: root/src/eval_env.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval_env.h')
-rw-r--r--src/eval_env.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eval_env.h b/src/eval_env.h
index 8c144f0..2341bcb 100644
--- a/src/eval_env.h
+++ b/src/eval_env.h
@@ -48,13 +48,15 @@ struct EvalString {
void Clear() { parsed_.clear(); }
bool empty() const { return parsed_.empty(); }
- enum TokenType { RAW, SPECIAL };
- void Add(TokenType type, StringPiece text);
+ void AddText(StringPiece text);
+ void AddSpecial(StringPiece text);
/// Construct a human-readable representation of the parsed state,
/// for use in tests.
string Serialize() const;
+private:
+ enum TokenType { RAW, SPECIAL };
typedef vector<pair<string, TokenType> > TokenList;
TokenList parsed_;
};