aboutsummaryrefslogtreecommitdiffstats
path: root/src/resp.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resp.hpp')
-rw-r--r--src/resp.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resp.hpp b/src/resp.hpp
index 9179b16..892ba13 100644
--- a/src/resp.hpp
+++ b/src/resp.hpp
@@ -38,7 +38,7 @@
#include <boost/format.hpp>
-#define THROW_IF(cond, error, ...) { if (cond) throw Error(error, __VA_ARGS__); }
+#define THROW_IF(cond, error, ...) { if (cond) throw RespError(error, __VA_ARGS__); }
using namespace std;
using boost::format;
@@ -58,8 +58,8 @@ struct Cursor {
};
/// Compilation error
-struct Error {
- Error(Cursor c, const string& m) : loc(c), msg(m) {}
+struct RespError {
+ RespError(Cursor c, const string& m) : loc(c), msg(m) {}
const string what() const { return (loc ? loc.str() + ": " : "") + "error: " + msg; }
const Cursor loc;
const string msg;
@@ -545,7 +545,7 @@ struct PEnv : private map<const string, const char*> {
}
}
- const AST* parse(Cursor& cur, std::istream& in) throw(Error);
+ const AST* parse(Cursor& cur, std::istream& in);
const AST* expand(const AST* exp);
typedef std::set<std::string> Primitives;
@@ -931,7 +931,7 @@ int repl(CEnv& cenv);
const AST* resp_cps(CEnv& cenv, const AST* ast, const AST* k) throw();
-void resp_constrain(TEnv& tenv, Constraints& c, const AST* ast) throw(Error);
+void resp_constrain(TEnv& tenv, Constraints& c, const AST* ast);
typedef const AST* (RespPass)(CEnv& cenv, Code& code, const AST* ast);