[Avida-SVN] r1987 - development/source/script
brysonda at myxo.css.msu.edu
brysonda at myxo.css.msu.edu
Wed Aug 22 13:15:38 PDT 2007
Author: brysonda
Date: 2007-08-22 16:15:38 -0400 (Wed, 22 Aug 2007)
New Revision: 1987
Modified:
development/source/script/cParser.cc
Log:
AS: Small fix to error reporting.
Modified: development/source/script/cParser.cc
===================================================================
--- development/source/script/cParser.cc 2007-08-22 19:56:02 UTC (rev 1986)
+++ development/source/script/cParser.cc 2007-08-22 20:15:38 UTC (rev 1987)
@@ -578,7 +578,7 @@
break;
case TOKEN(ID):
if (peekToken() == TOKEN(PREC_OPEN)) {
- nextToken();
+ nextToken(); // consume id token
if (nextToken() != TOKEN(PREC_CLOSE)) parseArgumentList();
if (currentToken() != TOKEN(PREC_CLOSE)) {
PARSE_UNEXPECT();
@@ -1133,6 +1133,7 @@
break;
case AS_PARSE_ERR_INTERNAL:
std::cerr << "internal parser error at cParser.cc:" << line << std::endl;
+ break;
case AS_PARSE_ERR_UNKNOWN:
default:
std::cerr << "parse error" << std::endl;
More information about the Avida-cvs
mailing list