mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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.
This commit is contained in:
13
ChangeLog
13
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.
|
||||
|
||||
Reference in New Issue
Block a user