|
PH Logo
Logo intepreter modeled after UCB Logo.
|
00001 /* 00002 * ListArrayParser.h 00003 * 00004 * Author: Paul Hamilton 00005 * Date: 7 Jul 2011 00006 * 00007 */ 00008 #ifndef _LISTARRAYPARSER_H 00009 #define _LISTARRAYPARSER_H 00010 00011 #include "Types.h" 00012 00013 #include <deque> 00014 00015 namespace phlogo { 00016 00017 class ListArrayParser { 00018 00019 public: 00020 00021 static size_t fromWord(tListArray *list, const std::string &word, size_t pos); 00022 static void addString(tListArray *list, const std::string &s); 00023 static size_t addList(tListArray *list, const std::string &word, size_t pos); 00024 static size_t addArray(tListArray *list, const std::string &word, size_t pos); 00025 00029 static std::string toString(const wListIter &begin, const wListIter &end); 00030 00031 }; 00032 00033 } 00034 00035 #endif // _LISTARRAYPARSER_H
1.7.4