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

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