|
PH Logo
Logo intepreter modeled after UCB Logo.
|
00001 /* 00002 * Func.h 00003 * 00004 * Author: Paul Hamilton 00005 * Date: 6 Jun 2011 00006 * 00007 */ 00008 #ifndef _FUNC_H 00009 #define _FUNC_H 00010 00011 #include "Types.h" 00012 00013 #include <vector> 00014 #include <string> 00015 00016 namespace phlogo { 00017 00018 class Interpreter; 00019 class World; 00020 class Iterators; 00021 00026 class Func { 00027 00028 public: 00029 Func(const std::string &args) : 00030 _args(args) {} 00031 00035 void addWords(const std::string &sentence); 00036 00040 void execute(Interpreter *itp, World *world, TokenStream *ts); 00041 00042 private: 00043 std::string _args; 00044 std::string _words; 00045 }; 00046 00047 } 00048 00049 #endif // _FUNC_H
1.7.4