]> git.saurik.com Git - bison.git/blobdiff - ChangeLog
Finer input type for yytranslate.
[bison.git] / ChangeLog
index 0ba320e21a59a5e95e1955bd44f08d2820f18b8e..fdc0d613933520746c963a8c48cb6aff64617c74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2008-11-13  Akim Demaille  <demaille@gostai.com>
+
+       Finer input type for yytranslate.
+       This patch is debatable: the tradition expects yylex to return an int
+       which happens to correspond to token_number (which is an enum).  This
+       allows for instance to return characters (such as '*' etc.).  But this
+       goes against the stronger typing I am trying to have with the new
+       lex interface which return a symbol_type.  So in this case, feed
+       yytranslate_ with a token_type.
+       
+       * data/lalr1.cc (yytranslate_): When in %define lex-symbol,
+       expect a token_type.
+
 2008-11-13  Akim Demaille  <demaille@gostai.com>
 
        Honor lex-params in %define lex_symbol mode.