diff src/parse.y @ 2427:2f50b24ce84f

[project @ 1996-10-25 06:15:28 by jwe]
author jwe
date Fri, 25 Oct 1996 06:15:50 +0000
parents 7ef24992e290
children 7dc71ca5d092
line wrap: on
line diff
--- a/src/parse.y	Fri Oct 25 02:33:12 1996 +0000
+++ b/src/parse.y	Fri Oct 25 06:15:50 1996 +0000
@@ -31,6 +31,10 @@
 #include <config.h>
 #endif
 
+#ifdef YYBYACC
+#include <cstdlib>
+#endif
+
 #include <strstream.h>
 
 #include "Matrix.h"
@@ -350,8 +354,9 @@
 %left UNARY PLUS_PLUS MINUS_MINUS EXPR_NOT
 %right POW EPOW
 
-// There are 19 shift/reduce conflicts, ok?
-%expect 19
+// There are 19 shift/reduce conflicts, ok?  But this only works with
+// bison...
+// %expect 19
 
 // Where to start.
 %start input
@@ -723,7 +728,7 @@
 		;
 
 if_cmd_list	: if_cmd_list1
-		  { $$ = $1 }
+		  { $$ = $1; }
 		| if_cmd_list1 else_clause
 		  {
 		    $1->append ($2);