From c916345f9c09c713d714d77785366d3c3e2df1d7 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Tue, 19 Jul 2011 20:18:02 -0400 Subject: [PATCH] Make semicolons after declarations optional. They're annoying, don't make sense for type names, weren't required by cdecl, and don't actually do anything productive. --- src/parse.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/parse.y b/src/parse.y index 1cda21f..cd88d2f 100644 --- a/src/parse.y +++ b/src/parse.y @@ -233,7 +233,9 @@ input: T_ENGLISH english { *out = $1; }; -declaration: declspecs declarators T_SEMICOLON { +semi: | T_SEMICOLON + +declaration: declspecs declarators semi { $$ = $2; for (struct cdecl *i = $$; i; i = i->next) -- 2.43.2