bison: catch bad symbol names.

* src/scan-gram.l({int}{id}): Report as an invalid identifier.
	* tests/input.at: Adjust.
This commit is contained in:
Akim Demaille
2009-05-04 21:23:55 +02:00
parent cdf3f11338
commit 84a1cb5ad0
3 changed files with 16 additions and 4 deletions

View File

@@ -1,8 +1,14 @@
2009-05-04 Akim Demaille <demaille@gostai.com>
bison: catch bad symbol names.
* src/scan-gram.l({int}{id}): Report as an invalid identifier.
* tests/input.at: Adjust.
2009-05-04 Akim Demaille <demaille@gostai.com>
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.