diff options
-rw-r--r-- | tuplr.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -111,11 +111,12 @@ struct ASTLiteral : public AST { /// Symbol, e.g. "a" struct ASTSymbol : public AST { - ASTSymbol(const string& s, Cursor c=Cursor()) : loc(c), cppstr(s) {} bool operator==(const AST& rhs) const { return this == &rhs; } string str() const { return cppstr; } CValue compile(CEnv& cenv); private: + friend class PEnv; + ASTSymbol(const string& s, Cursor c=Cursor()) : loc(c), cppstr(s) {} Cursor loc; const string cppstr; }; |