From 40211feffd1af2164674b1b4aa01f38197f75336 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 10 Apr 2020 08:02:55 -0700 Subject: parser: move cons dot handling to higher rule. * lib.h (struct list_accum): dot member removed. * parser.y (misplaced_consing_dot_check): Function removed. The misplaced consing dot diagnostic is still provided as before by yybadtoken. (n_exprs): Production for CONSDOT is moved here out of listacc. There is no $1.dot member to deal with; the dot is very simply handled here. (listacc): Remove calls to misplaced_consing_dot_check. CONSDOT production moved to n_exprs. (lacc, splacc): Remove initialization of dot member. --- lib.h | 1 - 1 file changed, 1 deletion(-) (limited to 'lib.h') diff --git a/lib.h b/lib.h index 708b6724..9002fd11 100644 --- a/lib.h +++ b/lib.h @@ -340,7 +340,6 @@ union obj { struct list_accum { obj_t *head; obj_t *tail; - obj_t *dot; }; #if CONFIG_GEN_GC -- cgit v1.2.3