From: Akim Demaille Date: Mon, 19 Jun 2006 16:49:44 +0000 (+0000) Subject: * src/scan-gram.l: No longer "parse" things after `%union' until X-Git-Tag: v2.3b~366 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/58d7a1a1c7497ba51a35fcf991c5b047f692fe18?hp=58d7a1a1c7497ba51a35fcf991c5b047f692fe18 * 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. ---