]> git.saurik.com Git - bison.git/commit - data/c++.m4
lalr1.cc: factor the yytranslate_ invocation in make_SYMBOLS.
authorAkim Demaille <demaille@gostai.com>
Wed, 9 Sep 2009 21:09:22 +0000 (23:09 +0200)
committerAkim Demaille <demaille@gostai.com>
Wed, 16 Sep 2009 15:45:22 +0000 (17:45 +0200)
commit2b08bcebf082a2417ef5706b5ae0664ce844f16e
treed61c5c60f6635d50f6d89357b3b13b7cc6e596f1
parentc981ce9b2b825d09920e70ffe5a5045f13b6341f
lalr1.cc: factor the yytranslate_ invocation in make_SYMBOLS.

* data/c++.m4, data/lalr1.cc (parser::symbol_type): Change the
constructor to take a token_type instead of the (internal) symbol
number.
Call yytranslate_.
* data/variant.hh (b4_symbol_constructor_define_): Therefore,
don't call yytranslate_ here.
ChangeLog
data/c++.m4
data/lalr1.cc
data/variant.hh