summaryrefslogtreecommitdiff
path: root/src/parser/parser.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2009-12-18 14:10:10 +0000
committerMorgan Deters <mdeters@gmail.com>2009-12-18 14:10:10 +0000
commit6ccbdaf56924c29aca8787cbcfd0ac9e8aff97c3 (patch)
tree2579995aa622057ab557dc10409f9669d5e74c04 /src/parser/parser.cpp
parent2eef69eb63f3a5637f8711944e3d056672872f20 (diff)
more build system fix-ups
Diffstat (limited to 'src/parser/parser.cpp')
-rw-r--r--src/parser/parser.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/parser/parser.cpp b/src/parser/parser.cpp
index e919a53e8..0a4b180ec 100644
--- a/src/parser/parser.cpp
+++ b/src/parser/parser.cpp
@@ -41,7 +41,7 @@ bool Parser::done() const {
return d_done;
}
-Command* Parser::parseNextCommand() throw (ParserException) {
+Command* Parser::parseNextCommand() throw(ParserException, AssertionException) {
Command* cmd = 0;
if(!done()) {
try {
@@ -58,7 +58,7 @@ Command* Parser::parseNextCommand() throw (ParserException) {
return cmd;
}
-Expr Parser::parseNextExpression() throw (ParserException) {
+Expr Parser::parseNextExpression() throw(ParserException, AssertionException) {
Expr result;
if(!done()) {
try {
@@ -76,7 +76,9 @@ Expr Parser::parseNextExpression() throw (ParserException) {
Parser::~Parser() {
delete d_antlrParser;
delete d_antlrLexer;
- if (d_deleteInput) delete d_input;
+ if(d_deleteInput) {
+ delete d_input;
+ }
}
Parser::Parser(istream* input, AntlrParser* antlrParser, CharScanner* antlrLexer, bool deleteInput) :
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback