mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
identifiers: dashes are letters.
Dashes can now start identifiers (symbols and directives).
* src/scan-gram.l ({letter}): Add dash.
({id}): Remove it.
* tests/input.at (Symbols): Adjust.
Remove stray comment.
* tests/regression.at (Invalid inputs): Adjust error message.
* doc/bison.texinfo (Symbols): Update.
This commit is contained in:
8
NEWS
8
NEWS
@@ -70,6 +70,14 @@ Bison News
|
||||
The old names are now deprecated but will be maintained indefinitely
|
||||
for backward compatibility.
|
||||
|
||||
** Symbols names
|
||||
|
||||
Consistently with directives (such as %error-verbose) and variables
|
||||
(e.g. push-pull), symbol names may include dashes in any position,
|
||||
similarly to periods and underscores. This is GNU extension over
|
||||
POSIX Yacc whose use is reported by -Wyacc, and rejected in Yacc
|
||||
mode (--yacc).
|
||||
|
||||
** Temporary hack for adding a semicolon to the user action.
|
||||
|
||||
Previously, Bison appended a semicolon to every user action for
|
||||
|
||||
Reference in New Issue
Block a user