]> git.saurik.com Git - bison.git/commit
symbol::token.
authorAkim Demaille <demaille@gostai.com>
Mon, 1 Sep 2008 08:51:46 +0000 (10:51 +0200)
committerAkim Demaille <demaille@gostai.com>
Thu, 13 Nov 2008 06:01:41 +0000 (07:01 +0100)
commit202598d3ab40e58385028c842ff79a680e79bbe8
treec4571d2a04e695958ab6cdc24911b1c50f86e4c6
parentfc2476c7cd70ff882dd29058d0fd6440972a6c64
symbol::token.

This is allows the user to get the type of a token return by
yylex.

* data/lalr1.cc (symbol::token): New.
(yytoknum_): Define when %define lex_symbol, independently of
%debug.
(yytoken_number_): Move into...
(symbol::token): here, since that's the only use.
The other one is YYPRINT which was not officially supported
by lalr1.cc, and anyway it did not work since YYPRINT uses this
array under a different name (yytoknum).
ChangeLog
data/lalr1.cc