From ca00aa11714921804afb490d0613086f549fb894 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 15 May 2007 12:14:37 +0000 Subject: * Allow empty argument lists in function definitions (e.g., `{}: bla'). Also allow trailing commas (`{x, y,}: ...') as a unintented consequence. Hopefully the reduce/reduce conflict won't cause any problems. --- src/libexpr/parser.y | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libexpr') diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index 3540058bc1e0..1c06240fdab0 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -249,6 +249,7 @@ expr_list formals : formal ',' formals { $$ = ATinsert($3, $1); } /* idem - right recursive */ | formal { $$ = ATinsert(ATempty, $1); } + | { $$ = ATempty; } ; formal -- cgit 1.4.1