diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-10-06 10:48:59 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-10-06 12:15:12 +0200 |
commit | 9e6c5328d321da6bc1d7ce0db4e3676d8132a295 (patch) | |
tree | e0a3c57d08928aa71543a280d730ffd6715683dc /NEWS | |
parent | fec13ce2db675d18afb887e3c98f347a2b3de31e (diff) | |
download | bison-9e6c5328d321da6bc1d7ce0db4e3676d8132a295.tar.gz |
diagnostics: also show suggested %empty
* src/reader.c (grammar_rule_check_and_complete): Suggest to add %empty.
* tests/actions.at, tests/diagnostics.at: Adjust expectations.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -39,6 +39,27 @@ GNU Bison NEWS The gain is typically moderate, but in extreme cases (very simple user actions), a 10% improvement can be observed. +*** Diagnostics with insertion + + The diagnostics now display suggestion below the underlined source. + Replacement for undeclared symbols are now also suggested. + + $ cat /tmp/foo.y + %% + list: lis '.' | + + $ bison -Wall foo.y + foo.y:2.7-9: error: symbol 'lis' is used, but is not defined as a token and has no rules; did you mean 'list'? + 2 | list: lis '.' | + | ^~~ + | list + foo.y:2.16: warning: empty rule without %empty [-Wempty-rule] + 2 | list: lis '.' | + | ^ + | %empty + foo.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother] + + *** Debug traces in Java The Java backend no longer emits code and data for parser tracing if the |