summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-05-15 12:14:37 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-05-15 12:14:37 +0000
commitca00aa11714921804afb490d0613086f549fb894 (patch)
treec07b7ec5facc5764589d644fe713ede095d97019 /src
parent7046c35843af7c6232efc7e7ee23b26096e0c692 (diff)
downloadguix-ca00aa11714921804afb490d0613086f549fb894.tar.gz
* 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.

Diffstat (limited to 'src')
-rw-r--r--src/libexpr/parser.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index 3540058bc1..1c06240fda 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