[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/8] TODO: update
From: |
Akim Demaille |
Subject: |
[PATCH 1/8] TODO: update |
Date: |
Wed, 2 Oct 2019 08:22:12 +0200 |
I no longer with that item, there are indeed two things to report:
lack of definition, and being useless. We could have either one
without the other, they are not directly related.
---
TODO | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/TODO b/TODO
index f0ec27da..97761b52 100644
--- a/TODO
+++ b/TODO
@@ -1,25 +1,3 @@
-* Bison 3.4
-** bad diagnostics
-%token <val> NUM
-%type <val> expr term fact
-
-%%
-
-res: expr { printf ("%d\n", $1); };
-expr: expr '+' term { $$ = $1 + $3; } | term;
-term: NUM | { $$ = 0; };
-
-The second warning about fact is... useless.
-
-$ bison /tmp/bar.y
-/tmp/bar.y:2.24-27: warning: symbol fact is used, but is not defined as a
token and has no rules [-Wother]
- %type <val> expr term fact
- ^~~~
-/tmp/bar.y: warning: 1 nonterminal useless in grammar [-Wother]
-/tmp/bar.y:2.24-27: warning: nonterminal useless in grammar: fact [-Wother]
- %type <val> expr term fact
- ^~~~
-
* Bison 3.5
** doc
I feel its ugly to use the GNU style to declare functions in the doc. It
--
2.23.0
- [PATCH 0/8] RFC: diagnostics: add suggestions, Akim Demaille, 2019/10/02
- [PATCH 1/8] TODO: update,
Akim Demaille <=
- [PATCH 2/8] tests: use tput to get the number of columns, Akim Demaille, 2019/10/02
- [PATCH 3/8] diagnostics: isolate caret_set_file, Akim Demaille, 2019/10/02
- [PATCH 4/8] diagnostics: isolate caret_set_column, Akim Demaille, 2019/10/02
- [PATCH 5/8] diagnostics: display suggested update after the caret-info, Akim Demaille, 2019/10/02
- [PATCH 7/8] style: isolate complain_symbol_undeclared, Akim Demaille, 2019/10/02
- [PATCH 6/8] style: simplify the handling of symbol and semantic_type tables, Akim Demaille, 2019/10/02
- [PATCH 8/8] diagnostics: suggest fixes for undeclared symbols, Akim Demaille, 2019/10/02