diff --git a/TODO b/TODO index 499657c0..0b18573b 100644 --- a/TODO +++ b/TODO @@ -134,6 +134,11 @@ $ ./tests/testsuite -l | grep errors | sed q 38: input.at:1730 errors * Short term +** Get rid of YYPRINT and b4_toknum + +** C++ a closer look at parser::by_type::token +It can certainly be simplified with we use api.token.raw. + ** Stop indentation in diagnostics Before Bison 2.7, we printed "flatly" the dependencies in long diagnostics: diff --git a/data/skeletons/lalr1.d b/data/skeletons/lalr1.d index cfb944fc..e102e1b3 100644 --- a/data/skeletons/lalr1.d +++ b/data/skeletons/lalr1.d @@ -771,14 +771,6 @@ m4_popdef([b4_at_dollar])])dnl ]b4_parser_tables_define[ - /* TOKEN_NUMBER_[YYLEX-NUM] -- Internal symbol number corresponding - to YYLEX-NUM. */ - private static immutable ]b4_int_type_for([b4_toknum])[[] - yytoken_number_ = - @{ - ]b4_toknum[ - @}; - /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at \a yyntokens_, nonterminals. */ private static immutable string[] yytname_ = diff --git a/data/skeletons/lalr1.java b/data/skeletons/lalr1.java index 239f0052..86a229a8 100644 --- a/data/skeletons/lalr1.java +++ b/data/skeletons/lalr1.java @@ -976,9 +976,6 @@ b4_dollar_popdef[]dnl private static final ]b4_int_type_for([b4_table])[ yytable_ninf_ = ]b4_table_ninf[; ]b4_parser_tables_define[ - ]b4_integral_parser_table_define([token_number], [b4_toknum], - [[YYTOKEN_NUMBER[YYLEX-NUM] -- Internal symbol number corresponding - to YYLEX-NUM.]])[ /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at \a yyntokens_, nonterminals. */