Fwd: grammar question

2008-12-06 Thread Илья
Hi, I found I send this mail only to Patrick, but thought I send it to list too. I still have question about ? and result Match object. Patrick do not answer, mb some one can say what I miss? or this is bug? Forward: Patrick, I read you post in blog about Z, so if I understand right for do [0],

Re: grammar question

2008-11-29 Thread Carl Mäsak
Patrick (>), Илья (>>): >> grammar G { >> token TOP { ^ + $ }; >> token foo { ':' ? }; >> token bar { \w }; >> }; >> >> ":a:b" ~~ G::TOP; >> >> say ~$/; #:a >> >> # why ':a'? why not just 'a'? > > $/ is an array of Match objects, and Parrot currently > doesn't distinguish between array

Re: grammar question

2008-11-29 Thread Patrick R. Michaud
On Sat, Nov 29, 2008 at 05:57:07PM +1000, Илья wrote: > Hi there, > I have tried to fix our HTML::Template in November which is blocked by > Rakudo segaful. > I was trying to create simple example, but can`t reproduce it. By the > way now I have short > example(much shorter then when I start), and

grammar question

2008-11-29 Thread Илья
Hi there, I have tried to fix our HTML::Template in November which is blocked by Rakudo segaful. I was trying to create simple example, but can`t reproduce it. By the way now I have short example(much shorter then when I start), and I have questions about it: grammar G { token TOP { ^ + $ };

Re: Grammar question

2006-08-11 Thread Patrick R. Michaud
On Fri, Aug 11, 2006 at 04:43:55PM +0100, Alberto Simões wrote: > Hi > > Today in #parrot a question was done: > > rule foo { * } > > should be considered: > > rule foo { * } > > or > > rule foo { ()* } In the past we've always gone with the former. If is also a rule, then it presuma

Grammar question

2006-08-11 Thread Alberto Simões
Hi Today in #parrot a question was done: rule foo { * } should be considered: rule foo { * } or rule foo { ()* } ? Cheers Alberto -- Alberto Simões - Departamento de Informática - Universidade do Minho Campus de Gualtar - 4710-057 Braga - Portugal "Beware of bugs