]> git.saurik.com Git - bison.git/commit
Handle string aliases for character tokens correctly.
authorJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 14 Aug 2006 00:34:17 +0000 (00:34 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 14 Aug 2006 00:34:17 +0000 (00:34 +0000)
commit1f6b3679b2f6eb9d5a7643e2b62f0f2939677be5
tree9f75d5dbc731409899e86f8ba42bbd751106e8b2
parent219741d8735bfa5c003e17d8527c6bdccc0d13fa
Handle string aliases for character tokens correctly.
* src/symtab.c (symbol_user_token_number_set): If the token has an
alias, check and set its alias's user token number instead of its own,
which is set to indicate the alias.  Previously, every occurrence of
the character token in the grammar overwrote that alias indicator with
the character code.
* tests/input.at (String aliases for character tokens): New test.
ChangeLog
src/symtab.c
tests/input.at