summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2010-08-23 20:49:45 +0100
committerFlorian Ragwitz <rafl@debian.org>2010-08-31 21:40:07 +0200
commita8812f5e4144abe77e484a03f0f8f3a838c5f319 (patch)
treebb505383f34a8739095fd4d203ca926f7d30b8d9 /perly.y
parent42ef68d0ff6e79e15cdacdaaa22748f5d00210b0 (diff)
downloadperl-a8812f5e4144abe77e484a03f0f8f3a838c5f319.tar.gz
remove dead listexprcom production from grammar
The third production of <listexprcom>, "expr ','", could never be invoked, because <expr> can already end with arbitrarily many commas.
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y11
1 files changed, 0 insertions, 11 deletions
diff --git a/perly.y b/perly.y
index edbcb19b36..ebcf5e7878 100644
--- a/perly.y
+++ b/perly.y
@@ -1331,17 +1331,6 @@ listexprcom: /* NULL */
{ $$ = (OP*)NULL; }
| expr
{ $$ = $1; }
- | expr ','
- {
-#ifdef MAD
- OP* op = newNULLLIST();
- token_getmad($2,op,',');
- $$ = append_elem(OP_LIST, $1, op);
-#else
- $$ = $1;
-#endif
-
- }
;
/* A little bit of trickery to make "for my $foo (@bar)" actually be