Classes | |
class | Lexer |
class | Lisp |
class | ListIterator |
Small and a bit hacky helper class that helps parsing lisp lists where all entries are lists again themselves. More... | |
class | Parser |
class | Writer |
Functions | |
static std::string | dirname (const std::string &filename) |
static std::string lisp::dirname | ( | const std::string & | filename | ) | [static] |
Definition at line 58 of file parser.cpp.
Referenced by lisp::Parser::parse().
00059 { 00060 std::string::size_type p = filename.find_last_of('/'); 00061 if(p == std::string::npos) 00062 return ""; 00063 00064 return filename.substr(0, p+1); 00065 }