Re: A5: a few simple questions

2002-06-06 Thread Allison Randal
On Thu, Jun 06, 2002 at 08:21:25PM +0100, Piers Cawley wrote: > Allison Randal <[EMAIL PROTECTED]> writes: > > > No, because rules are basically methods, just like grammars are > > basically classes. You would only need a semi-colon if you were defining > > an anonymous C (similar to an anonymous

Re: A5: a few simple questions

2002-06-06 Thread Piers Cawley
Allison Randal <[EMAIL PROTECTED]> writes: > On Thu, Jun 06, 2002 at 10:38:39AM -0400, John Siracusa wrote: >> On 6/6/02 2:43 AM, Damian Conway wrote: >> > rule wordlist { (\w+) [ , (\w+) ]* } >> >> No semicolon at the end of that line? I've already forgotten the "new >> rules" for that type

Re: A5: a few simple questions

2002-06-06 Thread Allison Randal
On Thu, Jun 06, 2002 at 10:38:39AM -0400, John Siracusa wrote: > On 6/6/02 2:43 AM, Damian Conway wrote: > > rule wordlist { (\w+) [ , (\w+) ]* } > > No semicolon at the end of that line? I've already forgotten the "new > rules" for that type of thing... :) No, because rules are basically met

Re: A5: a few simple questions

2002-06-06 Thread John Siracusa
On 6/6/02 2:43 AM, Damian Conway wrote: > rule wordlist { (\w+) [ , (\w+) ]* } No semicolon at the end of that line? I've already forgotten the "new rules" for that type of thing... :) -John

Re: A5: a few simple questions

2002-06-05 Thread Damian Conway
David Whipp wrote: > > First, a slight clarification: if I say: > > m:w/ %foo := [ (\w+) = (\w+) [ , (\w+) ]* ] / > > does this give me a hash of arrays? (i.e. is the rhs of a hash processed as > a scalar context) That's an error. The grouping bound to a hypothetical hash has to have either