develooper Front page | perl.perl5.porters | Postings from January 2001

[Patch perl@8375] pragma/subs.t ......FAILED tests 1-2 using Bison's parser

Thread Next
From:
Roca, Ignasi
Date:
January 11, 2001 03:56
Subject:
[Patch perl@8375] pragma/subs.t ......FAILED tests 1-2 using Bison's parser
Message ID:
5930DC161690D2119667009027157547038123E1@madt009a.siemens.es
In case of syntax error the parser after calling yylex() calls yyerror()
which uses supplied yychar in the last yylex call.
So we need to hold last entry in the stack.

Following a patch for this aim:
==========================================
--- toke.c.orig Tue Jan  9 05:14:47 2001
+++ toke.c      Thu Jan 11 12:54:36 2001
@@ -2093,7 +2093,8 @@

     r = Perl_yylex(aTHX);

-    yyactlevel--;
+    if (yyactlevel > 0)
+       yyactlevel--;

     return r;
 }
==========================================

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About