bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Minor bug in yyexpandGLRStack (glr.c) when YYSTACKEXPANDABLE is n ot def


From: Yakov Markovitch
Subject: Minor bug in yyexpandGLRStack (glr.c) when YYSTACKEXPANDABLE is n ot defined
Date: Fri, 18 Apr 2003 13:50:11 +0400

Hello all.

Below is a trivial patch that fixes obvious typo in yyexpandGLRStack code. 
This bug results in uncompilable GLR parsers when both %pure-parser and 
%locations are used and either the resulting parser is compiled by C++ or 
YYSTACKEXPANDABLE explicitly defined as 0.

*** glr.c       2 Mar 2003 13:39:44 -0000       1.53
--- glr.c       18 Apr 2003 09:37:37 -0000
***************
*** 926,932 ****
  
  #else
  
!   yyFail (yystack][]b4_lpure_args[, "parser stack overflow");
  #endif
  }
  
--- 926,932 ----
  
  #else
  
!   yyFail (yystack][]b4_pure_args[, "parser stack overflow");
  #endif
  }

Yours sincerely
       Yakov Markovitch, Lead Programmer
       InterSoft Lab
       Phone: 7 095 105-8134
       mailto:address@hidden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]