1 #ifndef __LISP_ITERATOR_H__
2 #define __LISP_ITERATOR_H__
10 * Small and a bit hacky helper class that helps parsing lisp lists where all
11 * entries are lists again themselves
16 ListIterator(const lisp::Lisp* cur);
18 const std::string& item() const
19 { return current_item; }
20 lisp::Lisp* lisp() const
21 { return current_lisp; }
22 lisp::Lisp* value() const
23 { return current_lisp->get_car(); }
27 std::string current_item;
28 lisp::Lisp* current_lisp;
29 const lisp::Lisp* cur;