bison-patches
[Top][All Lists]
Advanced

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

[PATCH] More TODO.


From: Akim Demaille
Subject: [PATCH] More TODO.
Date: Tue, 11 Nov 2008 14:55:57 -0000

        * TODO (single stack, yysyntax_error): New.
---
 ChangeLog |    5 +++++
 TODO      |   11 +++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fe8e550..8f97372 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-11-11  Akim Demaille  <address@hidden>
 
+       More TODO.
+       * TODO (single stack, yysyntax_error): New.
+
+2008-11-11  Akim Demaille  <address@hidden>
+
        Make it possible to return a symbol_type from yylex.
        * data/lalr1.cc (b4_lex_symbol_if): New.
        (parse): When lex_symbol is defined, expected yylex to return the
diff --git a/TODO b/TODO
index 634082a..ae89c92 100644
--- a/TODO
+++ b/TODO
@@ -77,6 +77,17 @@ including the separation bw declaration and definition.  See 
for
 instance b4_table_define in lalr1.cc.  This way, we could even factor
 C vs. C++ definitions.
 
+* From lalr1.cc to yacc.c
+** Single stack
+Merging the three stacks in lalr1.cc simplified the code, prompted for
+other improvements and also made it faster (probably because memory
+management is performed once instead of three times).  I suggest that
+we do the same in yacc.c.
+
+** yysyntax_error
+In lalr1.cc we invoke it with the translated lookahead (yytoken), and
+yacc.c uses yychar.  I don't see why.
+
 * Header guards
 
 From Franc,ois: should we keep the directory part in the CPP guard?
-- 
1.6.0.2.588.g3102





reply via email to

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