]> git.saurik.com Git - bison.git/commit - src/complain.c
variables: accept dashes.
authorAkim Demaille <demaille@gostai.com>
Mon, 20 Apr 2009 10:24:23 +0000 (12:24 +0200)
committerAkim Demaille <demaille@gostai.com>
Mon, 20 Apr 2009 21:17:51 +0000 (23:17 +0200)
commit4f646c3794c45940aaf96d5409eff02a2c74978e
tree914054ac558d9aca40ef8e42f680be96a27cb81b
parent184e31795670448ce726a8d4aafa7582faa1cb4a
variables: accept dashes.

* data/bison.m4 (b4_percent_define_if_define_): Also map dashes to
underscores.
* src/scan-gram.l ({id}): Also accept dashes after the initial
letter.
({directive}): Use {id}.
* src/parse-gram.y: Comment and formatting changes.
* doc/bison.texinfo (Symbols): Adjust the lexical definitions of
symbols.
* src/complain.h, src/complain.c (yacc_at): New.
* src/symtab.c (symbol_new): Use yacc_at to report inappropriate
symbol names.
* src/output.c (token_definitions_output): Do not #define token
names with dashes.
ChangeLog
data/bison.m4
doc/bison.texinfo
src/complain.c
src/complain.h
src/output.c
src/parse-gram.y
src/scan-gram.l
src/symtab.c