1 #if !defined(LISP_SYMBOL_H_INCLUDED)
2 #define LISP_SYMBOL_H_INCLUDED
8 struct Symbol
: public LispObj
10 void make(const CharType
*symname
)
17 while (*symname
!= '\0')
25 symname
= symname
- i
;
27 while(*symname
!= '\0')
36 CharType
& operator[](std::size_t i
)
41 const CharType
& operator[](std::size_t i
) const
48 return object
[i
].size();
51 bool operator==(const Symbol
& sym
)
53 if (sym
.length() == length())
58 while ((i
< size()) && result
)
60 result
= (object
[i
] == sym
.object
[i
]);
69 } // end namespace lisp