Skip Menu |

This queue is for tickets about the Parse-RecDescent CPAN distribution.

Report information
The Basics
Id: 13018
Status: resolved
Priority: 0/
Queue: Parse-RecDescent

People
Owner: Nobody in particular
Requestors: rudolph [...] usyd.edu.au
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: subrule results/return key names (in %item) for optional/repeated rules
perl -v: This is perl, v5.8.4 built for i386-linux-thread-multi uname -a Linux isengard 2.6.11.8 #1 Fri May 6 08:38:01 EST 2005 i686 GNU/Linux for a rule of the form: a: b c(?) the result of c is available through $item{c(?)} rather than just $item{c} This is slightly confusing and not documented, as far as I can tell.
Date: Mon, 30 May 2005 14:42:39 +1000
From: Damian Conway <damian [...] conway.org>
To: bug-Parse-RecDescent [...] rt.cpan.org
Subject: Re: [cpan #13018] subrule results/return key names (in %item) for optional/repeated rules
RT-Send-Cc:
Guest via RT wrote: Show quoted text
> for a rule of the form: > > a: b c(?) > > the result of c is available through $item{c(?)} rather than just $item{c} > > This is slightly confusing and not documented, as far as I can tell.
It's documented in the section on %item: The results of named subrules are stored in the hash under each subrule's name (including the repetition specifier, if any), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Damian
The behavior of %item's keys is documented in the current release of the module. Resolving.