* 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.
This commit is contained in:
Eelco Dolstra 2007-05-15 12:14:37 +00:00
parent 7046c35843
commit ca00aa1171
3 changed files with 3 additions and 0 deletions

View file

@ -249,6 +249,7 @@ expr_list
formals
: formal ',' formals { $$ = ATinsert($3, $1); } /* idem - right recursive */
| formal { $$ = ATinsert(ATempty, $1); }
| { $$ = ATempty; }
;
formal

View file

@ -0,0 +1 @@
Str("ab",[])

View file

@ -0,0 +1 @@
({}: {x,y,}: "${x}${y}") {} {x = "a"; y = "b";}