On Fri 30 May 2003 at 22:23:42 -0400, Michael George wrote:
> I did "xmkmf", followed by "make", but I get errors from bison/yacc:
> 
> /usr/local/src/ctwm-3.6>make
> bison -y -d gram.y
> gram.y:423.3: parse error, unexpected "|"
> gram.y:690.10: parse error, unexpected ":", expecting ";" or "|"
> gram.y:838.20: parse error, unexpected ":", expecting ";" or "|"
> gram.y:849.11: parse error, unexpected ":", expecting ";" or "|"
> gram.y:965.9: parse error, unexpected ":", expecting ";" or "|"
> make: *** [gram.c] Error 1

Looking at these, they were indeed real problems in the gram.y file.
Some of these also seem to be fixed in the 3.7alpha4 version, but it
introduced one more itself:

/tmp/ctwm-3.7-alpha4$ bison -y -d gram.y
gram.y:437: warning: previous rule lacks an ending `;'
gram.y:705: warning: previous rule lacks an ending `;'
gram.y:865: warning: previous rule lacks an ending `;'

--- gram.y.orig Sat May 31 11:42:24 2003
+++ gram.y      Sat May 31 11:41:59 2003
@@ -429,10 +429,10 @@
 
                | WINDOW_GEOMETRIES      {  }
                  wingeom_list
-                 ;
 
                | VIRTUAL_SCREENS       { }
                  geom_list
+               ;
 
 noarg          : KEYWORD               { if (!do_single_keyword ($1)) {
                                            twmrc_error_prefix();
@@ -701,6 +701,7 @@
                | geom_entries geom_entry
                ;
 geom_entry     : string { AddToList (&Scr->VirtualScreens, $1, "") }
+               ;
 
 squeeze                : SQUEEZE_TITLE { 
                                    if (HasShape) Scr->SqueezeTitle = TRUE;
@@ -861,6 +862,7 @@
 occupy_window_entry    : string {
                                AddToClientsList (workspace, $1);
                          }
+                       ;
 
 icon_list      : LB icon_entries RB {}
                ;

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert      -- The evil eye is caused by the black
\X/ rhialto/at/xs4all.nl        -- tongue - Tom Poes, "Het boze oog", 4456.

Reply via email to