aboutsummaryrefslogtreecommitdiffstats
path: root/src/parse.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-02-15 22:24:54 +0100
committerDavid Robillard <d@drobilla.net>2019-02-15 22:24:54 +0100
commitb321fb5d3d6b3c2855c2fcc049c6f3b8fb13a7a8 (patch)
tree2347b5b8d8eac8647267fb33ed35cd0f8dfabdf8 /src/parse.cpp
parent80801dc725dbb08c67ddee92fc742093f8c2bc7c (diff)
downloadresp-llvm7.tar.gz
resp-llvm7.tar.bz2
resp-llvm7.zip
WIP: Port to LLVM7llvm7
Diffstat (limited to 'src/parse.cpp')
-rw-r--r--src/parse.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parse.cpp b/src/parse.cpp
index ce69a72..bafe8d2 100644
--- a/src/parse.cpp
+++ b/src/parse.cpp
@@ -71,7 +71,7 @@ read_string(Cursor& cur, istream& in)
break;
default:
cin.putback(c);
- throw Error(cur, string("unknown string escape `\\") + (char)c + "'");
+ throw RespError(cur, string("unknown string escape `\\") + (char)c + "'");
}
default:
str.push_back(c);
@@ -124,7 +124,7 @@ read_special(Cursor& cur, istream& in)
eat_char(cur, in, 'f');
return new ALiteral<bool>(T_BOOL, false, cur);
default:
- throw Error(cur, (format("unknown special lexeme `%1%'") % in.peek()).str());
+ throw RespError(cur, (format("unknown special lexeme `%1%'") % in.peek()).str());
}
assert(false);
}
@@ -166,7 +166,7 @@ read_symbol(PEnv& penv, Cursor& cur, istream& in)
/// Read an expression from @a in
const AST*
-PEnv::parse(Cursor& cur, istream& in) throw(Error)
+PEnv::parse(Cursor& cur, istream& in)
{
while (!cin.eof()) {
skip_space(cur, in);
@@ -182,7 +182,7 @@ PEnv::parse(Cursor& cur, istream& in) throw(Error)
case '(':
return read_list(*this, cur, in);
case ')':
- throw Error(cur, "unexpected `)'");
+ throw RespError(cur, "unexpected `)'");
case '#':
{
const AST* ret = read_special(cur, in);