On Thu, 21 Nov 2002, Channy Tremblay wrote:

> channyt@munster:~/dosemu-1.1.3$ bison -V
> bison (GNU Bison) 1.75
>
> Any ideas?

Here's another idea: remove the semicolon on line 374 of
src/base/init/parser.y.

To really fix it (parser.y is generated using default-configure), you
must apply the patch below.

I have no idea why \n works and $ doesn't; maybe someone more familiar
with perl than myself does ...

Bart

--- dosemu-1.1.3.7/bisonpp.pl   Sun May 26 11:57:54 2002
+++ dosemu-1.1.3.8/bisonpp.pl   Thu Nov 21 21:42:35 2002
@@ -79,7 +79,7 @@
   $i = $$dir{$key};
   $$grammar[$i] =~ /^\S+?\s*:\s*(.*)/s;
   $rest = $1;
-  $rule =~ s/[ \t]*;\s*$//s;   # remove trailing ';'
+  $rule =~ s/[ \t]*;\s*\n//s;  # remove trailing ';'
   $rule =~ s/^(\S+?\s*:\s*)\|\s*/$1/s; # to be save: remove leading '|'
   $$grammar[$i] = "$rule\t\t| $rest";
 }


-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to