From: Akim Demaille Date: Thu, 21 Aug 2008 19:43:05 +0000 (+0200) Subject: More TODO. X-Git-Tag: v2.7.90~1072 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/00a8a0832d880e704aad1b78549874d2ea2890aa More TODO. * TODO (single stack, yysyntax_error): New. --- diff --git a/ChangeLog b/ChangeLog index fe8e5504..8f973721 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-11 Akim Demaille + + More TODO. + * TODO (single stack, yysyntax_error): New. + 2008-11-11 Akim Demaille Make it possible to return a symbol_type from yylex. diff --git a/TODO b/TODO index 634082ab..ae89c927 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?