4 * Created on: Aug 26, 2012
8 #ifndef LOADER_INTERPRETER_H_
9 #define LOADER_INTERPRETER_H_
29 class Error: public std::runtime_error {
31 Error(const std::string &msg) : std::runtime_error("interpreter error: " + msg) { }
35 Interpreter(const ParsedSource &source) : source(source) { }
38 Interpreter(const Interpreter &);
39 Interpreter &operator =(const Interpreter &);
45 void ReadLiteral(const Definition &);
46 void ReadObject(const Definition &);
48 void ReadMonster(battle::Monster &, const PropertyList &);
51 const ParsedSource &source;
52 std::vector<battle::Monster> monsters;
58 #endif /* LOADER_INTERPRETER_H_ */