include/rucy/symbol.h in rucy-0.1.3 vs include/rucy/symbol.h in rucy-0.1.4

- old
+ new

@@ -16,27 +16,38 @@ namespace Rucy { + class Value; + + class Symbol { public: Symbol (); Symbol (ID id); + Symbol (const Value& value); + Symbol (const char* str); ID id () const; + VALUE value () const; + const char* c_str () const; operator bool () const; bool operator ! () const; + + friend bool operator == (const Symbol& lhs, const Symbol& rhs); + + friend bool operator != (const Symbol& lhs, const Symbol& rhs); private: ID id_;