summaryrefslogtreecommitdiff
path: root/src/parser/input.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-07-06 15:52:10 +0000
committerMorgan Deters <mdeters@gmail.com>2010-07-06 15:52:10 +0000
commitd6b40829e8d92a7a298d0c0023d944131a8285cf (patch)
tree64fb36a7623cb2416d7129a3249d5875ce4f68ec /src/parser/input.h
parentb9f36ae0027e52da925416630ccad5d4b84779e9 (diff)
merge from CC work: pieces of the parser need to be declared to throw AssertionException, and language enum should have stream insertion op
Diffstat (limited to 'src/parser/input.h')
-rw-r--r--src/parser/input.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/parser/input.h b/src/parser/input.h
index ceec1c8bd..62015ba51 100644
--- a/src/parser/input.h
+++ b/src/parser/input.h
@@ -108,7 +108,7 @@ class CVC4_PUBLIC Input {
static Input* newFileInput(InputLanguage lang,
const std::string& filename,
bool useMmap=false)
- throw (InputStreamException);
+ throw (InputStreamException, AssertionException);
/** Create an input for the given stream.
*
@@ -119,7 +119,7 @@ class CVC4_PUBLIC Input {
static Input* newStreamInput(InputLanguage lang,
std::istream& input,
const std::string& name)
- throw (InputStreamException);
+ throw (InputStreamException, AssertionException);
/** Create an input for the given string
*
@@ -130,7 +130,7 @@ class CVC4_PUBLIC Input {
static Input* newStringInput(InputLanguage lang,
const std::string& input,
const std::string& name)
- throw (InputStreamException);
+ throw (InputStreamException, AssertionException);
public:
@@ -154,12 +154,14 @@ protected:
*
* @throws ParserException if an error is encountered during parsing.
*/
- virtual Command* parseCommand() throw(ParserException) = 0;
+ virtual Command* parseCommand()
+ throw (ParserException, AssertionException) = 0;
/**
* Throws a <code>ParserException</code> with the given message.
*/
- virtual void parseError(const std::string& msg) throw (ParserException) = 0;
+ virtual void parseError(const std::string& msg)
+ throw (ParserException, AssertionException) = 0;
/** Parse an
* expression from the input by invoking the implementation-specific
@@ -168,7 +170,8 @@ protected:
*
* @throws ParserException if an error is encountered during parsing.
*/
- virtual Expr parseExpr() throw(ParserException) = 0;
+ virtual Expr parseExpr()
+ throw (ParserException, AssertionException) = 0;
/** Set the Parser object for this input. */
virtual void setParser(Parser& parser) = 0;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback