]> git.saurik.com Git - bison.git/commit
(handle_dollar, handle_at): Now takes int
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Dec 2002 07:46:49 +0000 (07:46 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Dec 2002 07:46:49 +0000 (07:46 +0000)
commit624a35e20b675af53c8e23805ce79b3b6e3b11ed
treef905933b14a33120fe44839fba08133b6ebc2a0a
parentef4479de37ec5e1513d0f2cfb957e7bb5b73a501
(handle_dollar, handle_at): Now takes int
token_type, not braced_code code_kind.  All uses changed.
(SC_PRE_CODE): New state, for scanning after a keyword that
has (or usually has) an immediately-following braced code.
(token_type): New local var, to keep track of which token type
to return when scanning braced code.
(<INITIAL>"%destructor", <INITIAL>"%lex-param",
<INITIAL>"%parse-param", <INITIAL>"%printer,
<INITIAL>"%union"): Set token type and BEGIN SC_PRE_CODE
instead of returning a token type immediately.
(<INITIAL>"{"): Set token type.
(<SC_BRACED_CODE>"}"): Use it.
(handle_action_dollar, handle_action_at): Now returns bool
indicating success.  Fail if ! current_rule; this prevents a core dump.
(handle_symbol_code_dollar, handle_symbol_code_at):
Remove; merge body into caller.
(handle_dollar, handle_at): Complain in invalid contexts.
src/scan-gram.l