[cig-commits] r6526 - cs/babel/trunk/spike/Spike/Compiler

leif at geodynamics.org leif at geodynamics.org
Sun Apr 8 02:36:44 PDT 2007


Author: leif
Date: 2007-04-08 02:36:43 -0700 (Sun, 08 Apr 2007)
New Revision: 6526

Modified:
   cs/babel/trunk/spike/Spike/Compiler/gram.y
Log:
Don't bomb when there is a parse error.

Modified: cs/babel/trunk/spike/Spike/Compiler/gram.y
===================================================================
--- cs/babel/trunk/spike/Spike/Compiler/gram.y	2007-04-08 09:28:43 UTC (rev 6525)
+++ cs/babel/trunk/spike/Spike/Compiler/gram.y	2007-04-08 09:36:43 UTC (rev 6526)
@@ -418,7 +418,7 @@
 expression_statement
 	: ';'         { CHECK($$ = pass_statement($1)); }
 	| expr ';'    { CHECK($$ = expression_statement($1)); }
-	| error ';'   { yyerrok; }
+	| error ';'   { yyerrok; CHECK($$ = pass_statement($1)); }
 	;
 
 selection_statement



More information about the cig-commits mailing list