diff options
Diffstat (limited to 'src/parse.cpp')
-rw-r--r-- | src/parse.cpp | 8 |
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); |