bison-patches
[Top][All Lists]
Advanced

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

[PATCH] Honor lex-params in %define lex_symbol mode.


From: Akim Demaille
Subject: [PATCH] Honor lex-params in %define lex_symbol mode.
Date: Thu, 13 Nov 2008 05:30:40 -0000

        * data/lalr1.cc: Use b4_lex_param.
---
 ChangeLog     |    5 +++++
 data/lalr1.cc |    3 ++-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 23fd42e..0ba320e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-11-13  Akim Demaille  <address@hidden>
 
+       Honor lex-params in %define lex_symbol mode.
+       * data/lalr1.cc: Use b4_lex_param.
+
+2008-11-13  Akim Demaille  <address@hidden>
+
        Simplify names.
        * src/output.c (symbol_definitions_output): Rename symbol
        attributes type_name and has_type_name as type and has_type.
diff --git a/data/lalr1.cc b/data/lalr1.cc
index 10669ff..c2c634c 100644
--- a/data/lalr1.cc
+++ b/data/lalr1.cc
@@ -1197,7 +1197,8 @@ m4_popdef([b4_at_dollar])])dnl
       {
         YYCDEBUG << "Reading a token: ";
 ]b4_lex_symbol_if(
-[        yyla = yylex();],
+[        yyla = b4_c_function_call([yylex], [symbol_type],
+                                   m4_ifdef([b4_lex_param], b4_lex_param));],
 [        yyla.type = yytranslate_ (b4_c_function_call([yylex], [int],
                                     [[YYSTYPE*], [&yyla.value]][]dnl
 b4_locations_if([, [[location*], [&yyla.location]]])dnl
-- 
1.6.0.2.588.g3102





reply via email to

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