]> git.saurik.com Git - bison.git/commit - src/parse-gram.y
* src/scan-gram.l: No longer "parse" things after `%union' until
authorAkim Demaille <akim@epita.fr>
Mon, 19 Jun 2006 16:49:44 +0000 (16:49 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 19 Jun 2006 16:49:44 +0000 (16:49 +0000)
commit58d7a1a1c7497ba51a35fcf991c5b047f692fe18
tree2fd7d15bd241cfbab1ffee9c37dfa332cf371f69
parent40637e816996cb8353531398f4b17bf574bf0f93
* src/scan-gram.l: No longer "parse" things after `%union' until
`{'.  Rather, return a single "%union" token.
No longer make symbols: return strings, and leave the conversion
to symbols to the parser.
(SC_PRE_CODE, token_type): Remove.
* src/parse-gram.y (%union): New field `character'.
Sort tokens.
(CHAR): New token.
(ID, ID_COLON): Now that the scanner no longer makes them
identifiers, adjust all uses to invoke symbol_get.
(id_colon): New, wraps the conversion from string to symbol.
(%union): Accept a possible union_name.
(symbol): Now can be a char.
* data/c.m4 (b4_union_name): Leave a default value.
* data/glr.c, data/yacc.c: Use it.
ChangeLog
src/parse-gram.c
src/parse-gram.h
src/parse-gram.y
src/scan-gram.l