diff options
Diffstat (limited to 'src/parser/parser.cpp')
-rw-r--r-- | src/parser/parser.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/parser/parser.cpp b/src/parser/parser.cpp index 0a4b180ec..7b4810abb 100644 --- a/src/parser/parser.cpp +++ b/src/parser/parser.cpp @@ -42,14 +42,10 @@ bool Parser::done() const { } Command* Parser::parseNextCommand() throw(ParserException, AssertionException) { - Command* cmd = 0; + Command* cmd = NULL; if(!done()) { try { cmd = d_antlrParser->parseCommand(); - if(cmd == 0) { - setDone(); - cmd = new EmptyCommand("EOF"); - } } catch(antlr::ANTLRException& e) { setDone(); throw ParserException(e.toString()); |